forked from boostorg/system
Disable constexpr on g++ 5
This commit is contained in:
@@ -392,25 +392,6 @@ inline bool failed_impl( int ev, error_category const & cat )
|
||||
return cat.failed( ev );
|
||||
}
|
||||
|
||||
#elif BOOST_WORKAROUND(BOOST_GCC, < 60000)
|
||||
|
||||
inline bool failed2_impl( int ev, error_category const & cat )
|
||||
{
|
||||
return cat.failed( ev );
|
||||
}
|
||||
|
||||
BOOST_SYSTEM_CONSTEXPR inline bool failed_impl( int ev, error_category const & cat )
|
||||
{
|
||||
if( cat == system_category() || cat == generic_category() )
|
||||
{
|
||||
return ev != 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
return failed2_impl( ev, cat );
|
||||
}
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
BOOST_SYSTEM_CONSTEXPR inline bool failed_impl( int ev, error_category const & cat )
|
||||
|
||||
Reference in New Issue
Block a user