Index: boost/program_options/errors.hpp =================================================================== --- boost/program_options/errors.hpp (revision 65205) +++ boost/program_options/errors.hpp (working copy) @@ -13,8 +13,12 @@ #include #include +#if defined(BOOST_MSVC) +# pragma warning (push) +# pragma warning (disable:4275) // non dll-interface class 'std::logic_error' used as base for dll-interface class 'boost::program_options::error' +# pragma warning (disable:4251) // class 'std::vector<_Ty>' needs to have dll-interface to be used by clients of class 'boost::program_options::ambiguous_option' +#endif - namespace boost { namespace program_options { /** Base class for all errors in the library. */ @@ -232,5 +236,8 @@ }; }} +#if defined(BOOST_MSVC) +# pragma warning (push) +#endif #endif