
Template Implementaion in a DLL problem linking problem...
Hi all,
I want to hide the implementation details of my class templates in a
.cpp implementation file (IE: define), and only have the declaration of the
template in a .h file. If i link everything statically, i don't have any
problems, but if the .cpp resides in a DLL i can't get it to link My
declspec stuff is all fine for striaght non-template class function
definitions, but the templates have a problem. Has anyone come across the
problem of putting template definitions in a .cpp file? I really hate
having all my template code available in a .h. It defeats the purpose of
encapsulation, if any Tom,{*filter*} and Harry can modifiy or rip my code?
Thanks,
Shane
--
Shane Stevens
Lead Programmer
Blue Tongue Software
www.bluetongue.com