Coder's Guild Mailing List

Re: C++ (fixed sort of)

Posted by Frank Hale on 1999-04-04

> >
> >Again I stress that the templates work fine only if I put all the code
> >in 1 file and compile and link. Does anyone know whats wrong with this
> >code? There are 4 files
> >

Okay I searched dejanews.com for an answer to why you can't separate the
definition of a template class into a separate file from its declaration
and what I found was that this is most likely not possible. The solution
I found was to just put the implementation inside the template class
header file. While this is bad style it seems to work pretty good and I
can live with it.

-- 
From:      Frank Hale           | BootPC();
Email:     frankhale@xxxxxxxx.xxx.xxx   | if(OS != Linux) {
ICQ:       7205161          |   Reboot();
Website:   http://www.franksstuff.com   | }