Mail Archives: djgpp/1998/03/23/16:02:27
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<int> 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<int>;
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
- Raw text -