friend template
Alexandre Oliva
oliva@dcc.unicamp.br
Thu Dec 17 18:54:00 GMT 1998
On Dec 17, 1998, Naoki Saito <saito@math.ucdavis.edu> wrote:
> I encountered the following problem and would like to know whether
> there is any workaround. I followed exactly the same way as the FAQ
> (Friend templates) suggests.
Except that you separated the interface of the template from its
implementation, and that's the problem. Unless you do explicit
instantiation (or `export' the template definition, but this is not
implemented yet), the definition of a template must be available in
every translation unit in which it is used.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil
More information about the Gcc-bugs
mailing list