diff --git a/include/boost/system/detail/error_code.hpp b/include/boost/system/detail/error_code.hpp index 5840d0f..584b4b3 100644 --- a/include/boost/system/detail/error_code.hpp +++ b/include/boost/system/detail/error_code.hpp @@ -155,22 +155,6 @@ public: } } - template error_code( ErrorCodeEnum e, source_location const * loc, - typename detail::enable_if::value>::type* = 0 ) BOOST_NOEXCEPT: - d1_(), lc_flags_( 0 ) - { - error_code e2 = make_error_code( e ); - - if( e2.lc_flags_ == 0 || e2.lc_flags_ == 1 ) - { - *this = e2; - } - else - { - *this = error_code( e2.d1_.val_, *e2.d1_.cat_, loc ); - } - } - #if defined(BOOST_SYSTEM_HAS_SYSTEM_ERROR) error_code( std::error_code const& ec ) BOOST_NOEXCEPT: @@ -218,13 +202,6 @@ public: return *this; } - template - typename detail::enable_if::value, void>::type - assign( ErrorCodeEnum val, source_location const * loc ) BOOST_NOEXCEPT - { - *this = error_code( val, loc ); - } - BOOST_SYSTEM_CONSTEXPR void clear() BOOST_NOEXCEPT { *this = error_code();