forked from boostorg/system
Revert "Use enable_if from type_traits"
This reverts commit f92c0fc9b7
.
This commit is contained in:
@ -15,7 +15,7 @@
|
||||
#include <boost/system/config.hpp>
|
||||
#include <boost/cstdint.hpp>
|
||||
#include <boost/noncopyable.hpp>
|
||||
#include <boost/type_traits/enable_if.hpp>
|
||||
#include <boost/utility/enable_if.hpp>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
#include <stdexcept>
|
||||
@ -538,7 +538,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
|
||||
|
||||
template <class ErrorConditionEnum>
|
||||
error_condition(ErrorConditionEnum e,
|
||||
typename boost::enable_if_<is_error_condition_enum<ErrorConditionEnum>::value>::type*
|
||||
typename boost::enable_if<is_error_condition_enum<ErrorConditionEnum> >::type*
|
||||
= 0) BOOST_SYSTEM_NOEXCEPT
|
||||
{
|
||||
*this = make_error_condition(e);
|
||||
@ -553,7 +553,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
|
||||
}
|
||||
|
||||
template<typename ErrorConditionEnum>
|
||||
typename boost::enable_if_<is_error_condition_enum<ErrorConditionEnum>::value,
|
||||
typename boost::enable_if<is_error_condition_enum<ErrorConditionEnum>,
|
||||
error_condition>::type &
|
||||
operator=( ErrorConditionEnum val ) BOOST_SYSTEM_NOEXCEPT
|
||||
{
|
||||
@ -648,7 +648,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
|
||||
|
||||
template <class ErrorCodeEnum>
|
||||
error_code(ErrorCodeEnum e,
|
||||
typename boost::enable_if_<is_error_code_enum<ErrorCodeEnum>::value>::type* = 0)
|
||||
typename boost::enable_if<is_error_code_enum<ErrorCodeEnum> >::type* = 0)
|
||||
BOOST_SYSTEM_NOEXCEPT
|
||||
{
|
||||
*this = make_error_code(e);
|
||||
@ -662,7 +662,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT
|
||||
}
|
||||
|
||||
template<typename ErrorCodeEnum>
|
||||
typename boost::enable_if_<is_error_code_enum<ErrorCodeEnum>::value, error_code>::type &
|
||||
typename boost::enable_if<is_error_code_enum<ErrorCodeEnum>, error_code>::type &
|
||||
operator=( ErrorCodeEnum val ) BOOST_SYSTEM_NOEXCEPT
|
||||
{
|
||||
*this = make_error_code(val);
|
||||
|
Reference in New Issue
Block a user