You should take care with this also: std::vector does not have a virtual destructor, it's not really meant to be derived from; if you would delete a SynsupVector*, vector's destructor won't get called, which can turn out quite problematic..
If you need to add functionality you're better of writing void myFunc( std::vector<T>& ) or using the vector as a member variable.
Of course that doesn't solve the dll export problem since a template isn't compiled completely unless you use it.
Interesting problem ;-]





Reply With Quote
Bookmarks