template question.
Alexandre Oliva
oliva@dcc.unicamp.br
Thu Oct 29 19:35:00 GMT 1998
Satish <satish@dakotacom.net> writes:
> Foo<Bar *>::Foo(void) /var/tmp/cc0wXca01.o
Templates must be defined in every translation unit in which they're
used, unless you explicitly instantiate them.
> Also, the presence of def. for operator<< (comments removed)
> causes the following error, where I expected it to work just fine..
Check http://egcs.cygnus.com/faq.html#friend
--
Alexandre Oliva
mailto:oliva@dcc.unicamp.br mailto:oliva@gnu.org mailto:aoliva@acm.org
http://www.dcc.unicamp.br/~oliva
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc
mailing list