From f92c0fc9b7ca77f7731f4b69fb452789e1fba746 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Sat, 15 Sep 2018 01:50:41 +0300 Subject: [PATCH] Use enable_if from type_traits --- include/boost/system/error_code.hpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/include/boost/system/error_code.hpp b/include/boost/system/error_code.hpp index 5e9a33d..eb22f8e 100644 --- a/include/boost/system/error_code.hpp +++ b/include/boost/system/error_code.hpp @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include #include @@ -528,7 +528,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT template error_condition(ErrorConditionEnum e, - typename boost::enable_if >::type* + typename boost::enable_if_::value>::type* = 0) BOOST_SYSTEM_NOEXCEPT { *this = make_error_condition(e); @@ -543,7 +543,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT } template - typename boost::enable_if, + typename boost::enable_if_::value, error_condition>::type & operator=( ErrorConditionEnum val ) BOOST_SYSTEM_NOEXCEPT { @@ -638,7 +638,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT template error_code(ErrorCodeEnum e, - typename boost::enable_if >::type* = 0) + typename boost::enable_if_::value>::type* = 0) BOOST_SYSTEM_NOEXCEPT { *this = make_error_code(e); @@ -652,7 +652,7 @@ inline const error_category & generic_category() BOOST_SYSTEM_NOEXCEPT } template - typename boost::enable_if, error_code>::type & + typename boost::enable_if_::value, error_code>::type & operator=( ErrorCodeEnum val ) BOOST_SYSTEM_NOEXCEPT { *this = make_error_code(val);