Mail Archives: djgpp/1994/01/14/18:15:59
Is it possible to define the body of a template class in
an object file, and the definition in the header, and then
the linker be able to link in various instances of that
template use in various other modules which have that header.
I currently only seem to be able to use templates where the
code is defined inline in the header.
In Borland C++ 3.1 it can be done with the use of pragmas
and typedefs, clumsy but it works.
Would appreciate a sample bit of code if it is possible.
Thankyou.
- Raw text -