From: Kevin Murphy <murphy@crl.dec.com>
Subject: Re: template separation
Date: 1997/08/16 [thread overview]
Message-ID: <33F609D1.6956@crl.dec.com> (raw)
In-Reply-To: 33E38F0F.436E@texas.net
I have found that for template class definitions in g++, you must
put the implementation in the .h file.
For non-template classes, you must *not* put the definition in the .h
file, otherwise you get multiple defns.
For other compilers, like DEC CXX, you must not put the implementation
in the .h file for any kind of class, unless it's inline.
Kevin
PS. Presumably you are using the guarded include trick?
#ifndef FOO_H
#define FOO_H
header follows
#endif
prev parent reply other threads:[~1997-08-16 4:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-08-02 4:00 template separation magrasjc
1997-08-16 4:00 ` Kevin Murphy [this message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox