diff --git a/test/result_of_test.cpp b/test/result_of_test.cpp index 73dc757..bdbba2b 100644 --- a/test/result_of_test.cpp +++ b/test/result_of_test.cpp @@ -133,7 +133,7 @@ int main() // Prior to decltype, result_of could not deduce the return type // nullary function objects unless they exposed a result_type. -#if defined(BOOST_HAS_DECLTYPE) +#if !defined(BOOST_NO_DECLTYPE) BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same(void)>::type, int>::value)); @@ -149,7 +149,7 @@ int main() // result_type was defined. After decltype, result_of deduces the // actual return type of the function object, ignoring both // result<> and result_type. -#if defined(BOOST_HAS_DECLTYPE) +#if !defined(BOOST_NO_DECLTYPE) BOOST_STATIC_ASSERT((is_same::type, char>::value)); BOOST_STATIC_ASSERT((is_same(char)>::type, char>::value)); #else @@ -181,7 +181,7 @@ int main() BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same::type,int>::value)); -#if defined(BOOST_HAS_DECLTYPE) +#if !defined(BOOST_NO_DECLTYPE) BOOST_STATIC_ASSERT((is_same::type, int>::value)); BOOST_STATIC_ASSERT((is_same::type, unsigned int>::value)); BOOST_STATIC_ASSERT((is_same::type, short>::value));