Exporting classes containing std:: objects (vector, map, etc) from a dll
- by RnR
I'm trying to export classes from a DLL that contain objects such as std::vectors and std::stings - the whole class is declared as dll export through:
class DLL_EXPORT FontManager
{
The problem is that for members of the complex types I get this warning:
warning C4251: 'FontManager::m__fonts' : class 'std::map<_Kty,_Ty' needs to have…