7/28/2010

disable warnings when exporting STL

This article is good on explaining a warning when exporting std::vector in a library.
http://www.unknownroad.com/rtfm/VisualStudio/warningC4251.html
For short, using

#pragma warning( disable: 4251 )
works in most cases.
MSFT also has an article on this topic:
How To Exporting STL Components Inside & Outside of a Class

Labels: , ,

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home