How can I get the type of an expression including references? So that the following pseudocode will give different results all 3 times.
int a = 5;
std::cout << type(a) << std::endl;
int &b = a;
std::cout << type(b) << std::endl;
int &&c = 5;
std::cout << type(c) << std::endl;
(typeid
ignores references for some reason so it's not an option.)