15 Jul
2006
15 Jul
'06
9:16 a.m.
On 7/15/06, bringiton bringiton
sorry this is not a boost question, but wondering whether you guys could help with templates. I want to place template parameters on a class's member function. however it does not work:
class Test { public: template <class T> void DoTest(T t) { cout << t; } };
Test t; t.DoTest<int>(2); //error C2062: type 'int' unexpected
is it possible to do this?
aah, someone said this works on 7.1 im using ms vc++ 6 maybe time to upgrade my compiler ;)