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
Your probably didn't even instantiate your template, that's why it compiled.