dllexport instantiated static template member 
Author Message
 dllexport instantiated static template member

Does anybody know how to export/import a static member of
an instantiated template class, i.e. e.g.

template <class T> class A
{ ...
  static member;

Quote:
};

Say, I want to instantiate and share A<int>. I tried

template __declspec(dllex/import) A<int>;

Problem: there are two instances in my program, one used within
the DLL and one within the main program.

Thanks for any help,
Andreas



Sun, 04 Jul 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. dllexport and member templates

2. Instantiating template member functions

3. VC7 bug: static member templates

4. template classes with static members

5. Static members in Templates

6. static data member of template class

7. Initialization of static data member of template class

8. template classes with static members

9. Static member definition of template class fails

10. Static member definition of template class fails

11. Static member variables of template class

12. static member objects of templates - bug?

 

 
Powered by phpBB® Forum Software