Article View: gnu.g++.help
Article #812Re: Templates
From: Rohan LENARD
Date: Tue, 31 Oct 1995 21:56
Date: Tue, 31 Oct 1995 21:56
32 lines
1761 bytes
1761 bytes
In article <471ltm$vtd@penny.tagsys.com>, Andrew Gideon <andrew@tagsys.com> wrote: :In article AA05482@brie, albert@inrs-telecom.uquebec.ca (Albert Golembiowski) writes: :>Of course it's possible with g++-2.7.0 to include only interface headers, :>templates or not. To carry along template implementations, as suggested :>below, is to create dependency nightmare, i.e. any change :>in `mytemplates.cc' might put you through the amazing experience of watching :>the whole world recompile! :> :>Not to mention that doing this with any sizable project will make your :>compiler eat all the available memory, then proceed to your pets, then ...:-) :> : :Well, I don't want to lose my cats to a greedy compiler. : :I was not aware that I no longer needed to include the source :file (from the template header file). I'm including the sources now, :and things seem to work. You can only do this if - 1. You use -frepo 2. You need to compile at least 1 version of the source (so g++ knows where to find the class definition). Regards, Rohan -- ---------------------------------------------------------------------------- rjl@iassf.easams.com.au | All quotes can be attributed to my automated quote Rohan Lenard | writing tool. Yours for just $19.95; and if you +61-2-367-4555 | call now you'll get a free set of steak knives ...
Technical Details
Message-ID:
<476625$1fb@f111.iassf.easams.com.au>Path:
arc1-ca.pugleaf.net!iassf.easams.com.au!not-for-mailReferences:
<9510261754.AA05482@brie> <471ltm$vtd@penny.tagsys.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!iassf.easams.com.au!not-for-mail From: rjl@f111.iassf.easams.com.au (Rohan LENARD) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Re: Templates Date: 1 Nov 1995 08:56:21 +1100 Organization: EASAMS (Australia) Pty Ltd Message-ID: <476625$1fb@f111.iassf.easams.com.au> References: <9510261754.AA05482@brie> <471ltm$vtd@penny.tagsys.com> NNTP-Posting-Host: f111