I typed this into a template function, just to see if it would work:
if (T==int)
and the intellisense didn\'t complain. Is this valid C++? What
No, you can't use if (T == int) and std::cout<<(int)int;