The type of a variable is determined during compilation of the program. There is such template structure in C++ as std::is_same, declared in header <type_traits>, that can be used. But it seems that you need to determine the type of an expression value not the type of some variable.
The type of a variable is determined during compilation of the program. There is such template structure in C++ as std::is_same, declared in header <type_traits>, that can be used. But it seems that you need to determine the type of an expression value not the type of some variable.
Yes, thanks I actually need to check the type for an expression value, not a variable.