#include using namespace std ; //-------------------------------------------------------- template void f1(T param) { cout << "param:" << param << " " << typeid(T).name() << " " << typeid(param).name() << endl ; param++ ; } //-------------------------------------------------------- int main() { int x1 = 27; // x is an int const int cx = x1; // cx is a const int const int& rx = x1; f1( x1 ) ; //T is an int. param is an int cout << x1 << endl ; f1( cx ) ; //T is an int. param is an int f1( rx ) ; //T is an int. param is an int return 0 ; } //--------------------------------------------------------