STL execution differs on each platform, so publishing an STL to a library will have a risk, for example, if you set std :: map in your library, since you cannot export std :: map from your library, your library will be forced to use the std implementation :: map for users of your library (the one that loads your library), this will lead to some incompatibilities, such as a different version of the STL implementation, a different class of the STL allocator, and some platform-specific problems.
source share