🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #51094

Separate compilation for templates

#51094
From: Steve Sullivan
Date: Wed, 30 Jun 1993 19:55
14 lines
1093 bytes
I'm using gcc-2.4.5 with templates, and it works as
long as all function members for a class are defined
in the class declaration -- that is typically in a header
file, and it implies they are inline.

But is there any way to use template classes in which
the functions are compiled separately from the program using them,
as in normal C++ classes?

If you've found a way, could you email post a short example?

Many thanks -

Steve Sullivan
Technical Details
Message-ID: <C9GA0J.CHp@csn.org>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!emory!nigel.msen.com!sdd.hp.com!col.hp.com!csn!teal.csn.org!sullivan

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,cc6ebc3a939703b,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-06-30 13:00:44 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!darwin.sura.net!emory!nigel.msen.com!sdd.hp.com!col.hp.com!csn!teal.csn.org!sullivan
From: sullivan@teal.csn.org (Steve Sullivan)
Subject: Separate compilation for templates
Message-ID: <C9GA0J.CHp@csn.org>
Sender: news@csn.org (The Daily Planet)
Nntp-Posting-Host: teal.csn.org
Organization: Colorado SuperNet, Inc.
Distribution: na
Date: Wed, 30 Jun 1993 19:55:30 GMT
Lines: 15