JB> goal: use different files for template based classes, main, and headers.
You really can't... not in general, anyway. The compiler needs to know all
of the template code to instantiate it.
However, gcc may allow you to do this - but it's not portable to other
compilers. Try:
JB> *.h =========================
#pragma interface
[...]
JB> *.cpp =======================
Change this to *.cc
I notice that the EMX port has in include/cpp/std a file bastring.h and a
file bastring.cc that seem to work - I've used the template in there fairly
often.
Good luck,
---
---------------
* Origin: Tanktalus' Tower BBS (1:250/102)
|