Hi, I am writing a game and compiling it with VC++ and G++. Until now I have not had many troubles, but today, when I needed some templates runing around, I came across some anoyng errors in VC++. In G++ the fowling compile just fine.
class A {
public:
template<typename Container>
void doSomething( Container& c );
};
template<typename Container>
void A::doSomething( Container& c ) {c.push_back(1);}
And I use it like this:
A a;
vector<int> v;
a.doDomething(v);
Like I said, this compiles on G++ but not on VC++. Can someonte tell me why?
[edited by - Pedro Santos on June 30, 2002 5:13:15 PM]