diff --git a/include/boost/bind/bind.hpp b/include/boost/bind/bind.hpp index 1ccbc73..4cedc5e 100644 --- a/include/boost/bind/bind.hpp +++ b/include/boost/bind/bind.hpp @@ -2126,7 +2126,7 @@ template -# ifdef __cpp_noexcept_function_type +# if defined( __cpp_noexcept_function_type ) || defined( _NOEXCEPT_TYPES_SUPPORTED ) # undef BOOST_BIND_NOEXCEPT # define BOOST_BIND_NOEXCEPT noexcept # include @@ -2187,7 +2187,7 @@ template #include -# ifdef __cpp_noexcept_function_type +# if defined( __cpp_noexcept_function_type ) || defined( _NOEXCEPT_TYPES_SUPPORTED ) # undef BOOST_BIND_MF_NOEXCEPT # define BOOST_BIND_MF_NOEXCEPT noexcept # include @@ -2292,7 +2292,7 @@ template< class R, class T > struct add_cref< R (T::*) () const, 1 > typedef void type; }; -#ifdef __cpp_noexcept_function_type +#if defined( __cpp_noexcept_function_type ) || defined( _NOEXCEPT_TYPES_SUPPORTED ) template< class R, class T > struct add_cref< R (T::*) () const noexcept, 1 > {