It is not a good practice using stl-classes in the dll-interface as Common practice in dealing with warning c4251: class … needs to have dll-interface explains. An example i
Just use Pointer To Implementation (pImpl) idiom.