From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) Newsgroups: comp.os.msdos.djgpp Subject: Re: Trying to get Templates to work (SLList) Date: 11 Nov 1997 17:39:00 GMT Organization: The National Capital FreeNet Lines: 17 Message-ID: <64a57k$fpj@freenet-news.carleton.ca> References: <346615c3 DOT 9438511 AT news DOT virgin DOT net> <647n96$abb$1 AT news DOT metronet DOT de> Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire) NNTP-Posting-Host: freenet3.carleton.ca To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk "Stefan Schimanski" (1Stein AT gmx DOT de) writes: > I had similar problems with template. I solved them by included the whole > source code of the template in the header file. Moreover I had to implement > the constructor in the class declaration like an inline function. When I > tried to put the body somewhere below it didn't work. This is normal. Also, you can put the function body south of the class definition, as you wanted; you just have to use the keyword inline before both the prototype in the definition and the function body, or the linker will whine about multiple references. -- .*. Where feelings are concerned, answers are rarely simple [GeneDeWeese] -() < When I go to the theater, I always go straight to the "bag and mix" `*' bulk candy section...because variety is the spice of life... [me] Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh