forked from boostorg/system
Do not use std::system_category under VS2013
This commit is contained in:
@ -121,9 +121,10 @@ inline error_category::operator std::error_category const & () const
|
|||||||
|
|
||||||
if( id_ == detail::system_category_id )
|
if( id_ == detail::system_category_id )
|
||||||
{
|
{
|
||||||
#if defined(__CYGWIN__)
|
#if defined(__CYGWIN__) || (defined(_MSC_VER) && _MSC_VER == 1800)
|
||||||
|
|
||||||
// Under Cygwin, std::system_category() is POSIX
|
// Under Cygwin, std::system_category() is POSIX
|
||||||
|
// Under VS2013, std::system_category() isn't quite right
|
||||||
|
|
||||||
static const boost::system::detail::std_category system_instance( this, 0x1F4D7 );
|
static const boost::system::detail::std_category system_instance( this, 0x1F4D7 );
|
||||||
return system_instance;
|
return system_instance;
|
||||||
|
Reference in New Issue
Block a user