|
Boost Users : |
From: bringiton bringiton (kneeride_at_[hidden])
Date: 2006-07-15 04:45:17
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?
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net