From bbccfbbab4d5feb9cd772000afb143a24aeceab7 Mon Sep 17 00:00:00 2001 From: Daniel James Date: Sun, 7 Mar 2010 13:10:54 +0000 Subject: [PATCH] Remove use of deprecated macro in result_of test. [SVN r60293] --- test/result_of_test.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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));