mirror of
https://github.com/boostorg/system.git
synced 2025-07-30 04:27:14 +02:00
Move op!= for error_condition
This commit is contained in:
@ -14,6 +14,8 @@
|
|||||||
#include <boost/system/detail/generic_category.hpp>
|
#include <boost/system/detail/generic_category.hpp>
|
||||||
#include <boost/system/detail/enable_if.hpp>
|
#include <boost/system/detail/enable_if.hpp>
|
||||||
#include <boost/system/is_error_condition_enum.hpp>
|
#include <boost/system/is_error_condition_enum.hpp>
|
||||||
|
#include <boost/system/detail/config.hpp>
|
||||||
|
#include <boost/config.hpp>
|
||||||
|
|
||||||
namespace boost
|
namespace boost
|
||||||
{
|
{
|
||||||
@ -152,6 +154,11 @@ public:
|
|||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
BOOST_SYSTEM_CONSTEXPR inline bool operator!=( const error_condition & lhs, const error_condition & rhs ) BOOST_NOEXCEPT
|
||||||
|
{
|
||||||
|
return !( lhs == rhs );
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace system
|
} // namespace system
|
||||||
|
|
||||||
} // namespace boost
|
} // namespace boost
|
||||||
|
@ -87,11 +87,6 @@ inline system::error_code& throws()
|
|||||||
namespace system
|
namespace system
|
||||||
{
|
{
|
||||||
|
|
||||||
BOOST_SYSTEM_CONSTEXPR inline bool operator!=( const error_condition & lhs, const error_condition & rhs ) BOOST_NOEXCEPT
|
|
||||||
{
|
|
||||||
return !( lhs == rhs );
|
|
||||||
}
|
|
||||||
|
|
||||||
inline bool operator==( const error_code & code, const error_condition & condition ) BOOST_NOEXCEPT
|
inline bool operator==( const error_code & code, const error_condition & condition ) BOOST_NOEXCEPT
|
||||||
{
|
{
|
||||||
return code.category().equivalent( code.value(), condition ) || condition.category().equivalent( code, condition.value() );
|
return code.category().equivalent( code.value(), condition ) || condition.category().equivalent( code, condition.value() );
|
||||||
|
Reference in New Issue
Block a user