c++/8434: Template Inclusion - keyword 'export' not implemented

Gabriel Dos Reis gdr@integrable-solutions.net
Sun Nov 3 06:16:00 GMT 2002


The following reply was made to PR c++/8434; it has been noted by GNATS.

From: Gabriel Dos Reis <gdr@integrable-solutions.net>
To: mjmaterna60193@yahoo.com
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: c++/8434: Template Inclusion - keyword 'export' not implemented
Date: 03 Nov 2002 15:13:48 +0100

 mjmaterna60193@yahoo.com writes:
 
 | >Synopsis:       Template Inclusion - keyword 'export' not implemented
 
 [...]
 
 | >Class:          sw-bug
 
 This is not a bug in the compiler. It is known that GCC has (not yet)
 no plan to implement "export", and a diagnostic is emitted when an
 attempt is made to use that keyword.
 
 [...]
 
 | Is there another way around this? 
 
 Make your template definitions available to the compiler when
 instantiating -- the easiest way is to put the template code in a
 header file.
 
 | (Putting the definition in the include is really not ideal because
 | the templated class will be widely used.) 
 
 It is however a *practical* solution.
 
 | I do require this functionality.   
 
 Well, GCC is a volunteer project; you cannot *require*.
 
 -- Gaby



More information about the Gcc-prs mailing list