Article View: gnu.g++.help
Article #807Re: Templates
From: Andrew Gideon
Date: Mon, 30 Oct 1995 04:56
Date: Mon, 30 Oct 1995 04:56
22 lines
1284 bytes
1284 bytes
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. I'm currently also using "-frepo". What can I do to avoid the necessity of including the source file? - Andrew "I like my cats" Gideon
Technical Details
Message-ID:
<471ltm$vtd@penny.tagsys.com>Path:
arc1-ca.pugleaf.net!penny.tagsys.com!newsReferences:
<9510261754.AA05482@brie>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!penny.tagsys.com!news From: andrew@tagsys.com (Andrew Gideon) Newsgroups: gnu.g++.help,comp.lang.c++ Subject: Re: Templates Date: 30 Oct 1995 04:56:22 GMT Organization: TAG Systems Inc. Message-ID: <471ltm$vtd@penny.tagsys.com> References: <9510261754.AA05482@brie> Reply-To: andrew@tagsys.com NNTP-Posting-Host: alex.tagsys.com