This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: template question.
- To: Satish <satish at dakotacom dot net>
- Subject: Re: template question.
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 29 Oct 1998 19:01:20 -200
- Cc: egcs at cygnus dot com
- References: <3624ED89.5CD7BBF3@dakotacom.net>
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