From: deepblack AT geocities DOT com (Luís Coelho) Newsgroups: comp.os.msdos.djgpp Subject: Re: Templates AND GCC Date: Sat, 21 Mar 1998 21:59:53 GMT Organization: Instituto Superior Tecnico Lines: 30 Message-ID: <35143322.19995669@news.ist.utl.pt> References: <350EBB24 DOT EAEB38D5 AT geocities DOT com> <351169b9 DOT 0 AT news DOT cadvision DOT com> NNTP-Posting-Host: ppp11.ist.utl.pt To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On 19 Mar 98 18:53:45 GMT, frenchc AT SPAMISNTCOOLcadvision DOT com (Calvin French) uttered the following words: >types to actually compile them from. Now, I believe there are two solutions. >You can either put dummy statements of some kind into list.cc, for instance: > >list dummylist; I think that the compiler is not obliged to generate code for the whole thing just for the constructor. If you then *use* functions, these will be generated as needed. >Or perhaps there is a way to do it without having to make a data member which There is according to the standard. Just write: template list; and all the functions will be generated. Place this in your list.cc file and then you will only need to include the list.h header. Luís Coelho. Expo 98 -- http://www.expo98.pt <-- Come and visit us in 98! "Technology does not always equal progress" -- Douglas Coupland, Life After God http://www.geocities.com/SiliconValley/Way/3972/index.html