Sometimes expressed expressions appear in the code. For example, heavy use of the Boost library attracts these expressions. If I want the type of typedefthis expression, I need to write its type. Is there a way to find out this type at compile time ( change: or runtime)? Perhaps Boost offers related functionality. I would like to use it as
#pragma message (...expression...)
EDIT: If there is a problem with detecting the type of compilation time, then a determination of the type of runtime is also detected. For example, a function like the following would match
template <typename T> std::string detectExpressionType(T t);
source
share