Silence MSVC warnings about 'this' in base class initializer list.

This commit is contained in:
Andrey Semashev
2017-09-05 21:32:25 +03:00
parent efe849862f
commit b6ef4ad220

View File

@ -210,6 +210,12 @@ namespace boost
= system_category(); = system_category();
#endif #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 ------------------------------------------------//
class error_category : public noncopyable class error_category : public noncopyable
@ -328,6 +334,10 @@ namespace boost
{ return std::less<const error_category*>()( this, &rhs ); } { return std::less<const error_category*>()( this, &rhs ); }
}; };
#ifdef BOOST_MSVC
#pragma warning(pop)
#endif
// class error_condition ---------------------------------------------------------// // class error_condition ---------------------------------------------------------//
// error_conditions are portable, error_codes are system or library specific // error_conditions are portable, error_codes are system or library specific