Problem with g++ 2.95.2 ? Static methods and templates

Matt Gumbley mgumbley@enigmadata.co.uk
Fri Dec 8 03:39:00 GMT 2000


Alexandre Oliva wrote:
> 
> On Dec  7, 2000, Matt Gumbley <mgumbley@enigmadata.co.uk> wrote:
> 
> > Could someone with more knowledge of C++ and g++ help?
> 
> If the definitions of member functions of a template aren't visible
> when the template is instantiated, they won't be instantiated.  You
> must define template member functions in the header file itself, at
> least until the `export' keyword is implemented.  If Sun WorkShop 5.0
> doesn't require either, it's an extension of the C++ Standard, that
> GCC doesn't happen to support.
> 
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me

Many thanks for your rapid response, Alexandre - this fixed it. 
-- 
Matt J. Gumbley,  Software Engineer | Enigma Data Systems Ltd.
Email: mgumbley@enigmadata.co.uk    | Chelsea House, 8-14 The Broadway,
Tel: +44 (0)1444 476500 |  Direct:  | Haywards Heath, West Sussex.
Fax: +44 (0)1444 476501 |  476510   | RH16 3AP England.


More information about the Gcc-bugs mailing list