mirror of
https://github.com/boostorg/system.git
synced 2025-07-29 20:17:13 +02:00
Retain old generic_category conversion behavior on g++ 4.8/4.9
This commit is contained in:
@ -104,7 +104,16 @@ inline boost::system::error_category::operator std::error_category const & () co
|
||||
{
|
||||
if( id_ == boost::system::detail::generic_category_id )
|
||||
{
|
||||
#if defined(BOOST_GCC) && BOOST_GCC < 50000
|
||||
|
||||
static const boost::system::detail::std_category generic_instance( this, 0x1F4D3 );
|
||||
return generic_instance;
|
||||
|
||||
#else
|
||||
|
||||
return std::generic_category();
|
||||
|
||||
#endif
|
||||
}
|
||||
|
||||
if( id_ == boost::system::detail::system_category_id )
|
||||
|
Reference in New Issue
Block a user