Templates problems!
Martin v. Loewis
martin@loewis.home.cs.tu-berlin.de
Thu Apr 27 01:28:00 GMT 2000
> Why can I compile the program that is in the tar file above with the
> simple line command :
Thanks for your bug report. This is not a bug in the compiler, but in
your code. In C++, a template member that is instantiated must be
defined at the point of instantiation, a mere declaration is not
sufficient. As a result, you must put all template definitions into
List.h.
If you question this analyis, please discuss it in one of the public
C++ fora first, eg. comp.lang.c++.moderated, or comp.std.c++.
Regards,
Martin
More information about the Gcc-bugs
mailing list