21 Jan
2007
21 Jan
'07
19:57
Am Sonntag, 21. Januar 2007 17:57 schrieb Jerry Feldman:
containertest.cc: In member function ‘void MyClass<T>::erase(size_t)’: containertest.cc:13: error: expected `;' before ‘it’ Note: I've included both <list> and <iterator>.
You must define that method in the header-file. The compiler can't generate code unless it knows the actual type...
Now if I declare something like: std::list<double>::iterator it; or std::liststd::string::iterator it;
Everything builds. ...like here.
To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org