You skimmed over extern templates and you told that you really didn't use such thing. Please imagine this, I really want to make some dynamic library for other people to use, but almost all of the C++ standard library is template classes and I am not able to safely export anything from my library. There are a lot of articles around the web and all of them tells me how to hide the VisualStudio warning, the thing is problem persists. How can I use something like vector or shared_ptr if I cannot export them safely?
class MY_API MyClass
where MY_API is __declspec(dllimport/dllexport) thingy. How do you tackle this problem?