Quote Originally Posted by vermarajeev View Post
Now my problem is with this code
Qt Code:
  1. template<class T> class COMMON_DLL_API SynsupVector : public std::vector<T>
  2. {
  3.  
  4. };
To copy to clipboard, switch view to plain text mode 
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 ;-]