forked from boostorg/system
Silence MSVC warnings about 'this' in base class initializer list.
This commit is contained in:
@ -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
|
||||||
|
Reference in New Issue
Block a user