diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 0d64b2b..12191f9 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -210,6 +210,12 @@ namespace boost = system_category(); #endif +#ifdef BOOST_MSVC +#pragma warning(push) +// 'this' : used in base member initializer list +#pragma warning(disable: 4355) +#endif + // class error_category ------------------------------------------------// class error_category : public noncopyable @@ -328,6 +334,10 @@ namespace boost { return std::less()( this, &rhs ); } }; +#ifdef BOOST_MSVC +#pragma warning(pop) +#endif + // class error_condition ---------------------------------------------------------// // error_conditions are portable, error_codes are system or library specific