Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81574 - in trunk: boost/utility libs/utility/test
From: marshall_at_[hidden]
Date: 2012-11-26 15:32:25


Author: marshall
Date: 2012-11-26 15:32:24 EST (Mon, 26 Nov 2012)
New Revision: 81574
URL: http://svn.boost.org/trac/boost/changeset/81574

Log:
Removed usage of deprecated macros in Boost.Utility; specifically result_of
Text files modified:
   trunk/boost/utility/result_of.hpp | 2 +-
   trunk/libs/utility/test/result_of_test.cpp | 6 +++---
   2 files changed, 4 insertions(+), 4 deletions(-)

Modified: trunk/boost/utility/result_of.hpp
==============================================================================
--- trunk/boost/utility/result_of.hpp (original)
+++ trunk/boost/utility/result_of.hpp 2012-11-26 15:32:24 EST (Mon, 26 Nov 2012)
@@ -46,7 +46,7 @@
 
 #ifndef BOOST_RESULT_OF_USE_TR1
 # ifndef BOOST_RESULT_OF_USE_DECLTYPE
-# ifndef BOOST_NO_DECLTYPE_N3276 // this implies !defined(BOOST_NO_DECLTYPE)
+# ifndef BOOST_NO_CXX11_DECLTYPE_N3276 // this implies !defined(BOOST_NO_CXX11_DECLTYPE)
 # define BOOST_RESULT_OF_USE_DECLTYPE
 # else
 # define BOOST_RESULT_OF_USE_TR1

Modified: trunk/libs/utility/test/result_of_test.cpp
==============================================================================
--- trunk/libs/utility/test/result_of_test.cpp (original)
+++ trunk/libs/utility/test/result_of_test.cpp 2012-11-26 15:32:24 EST (Mon, 26 Nov 2012)
@@ -104,7 +104,7 @@
   cv_overload_check<const int> operator()() const;
   cv_overload_check<volatile int> operator()() volatile;
   cv_overload_check<const volatile int> operator()() const volatile;
-#if !defined(BOOST_NO_RVALUE_REFERENCES)
+#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
   short operator()(int&&);
   int operator()(int&);
   long operator()(int const&);
@@ -122,7 +122,7 @@
   cv_overload_check<const int> operator()() const;
   cv_overload_check<volatile int> operator()() volatile;
   cv_overload_check<const volatile int> operator()() const volatile;
-#if !defined(BOOST_NO_RVALUE_REFERENCES)
+#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
   short operator()(int&&);
   int operator()(int&);
   long operator()(int const&);
@@ -291,7 +291,7 @@
   BOOST_STATIC_ASSERT((is_same<result_of<const no_result_type_or_result_template<void>(void)>::type, cv_overload_check<const int> >::value));
   BOOST_STATIC_ASSERT((is_same<result_of<volatile no_result_type_or_result_template<void>(void)>::type, cv_overload_check<volatile int> >::value));
   BOOST_STATIC_ASSERT((is_same<result_of<const volatile no_result_type_or_result_template<void>(void)>::type, cv_overload_check<const volatile int> >::value));
-#if !defined(BOOST_NO_RVALUE_REFERENCES)
+#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
   BOOST_STATIC_ASSERT((is_same<result_of<no_result_type_or_result(int&&)>::type, short>::value));
   BOOST_STATIC_ASSERT((is_same<result_of<no_result_type_or_result(int&)>::type, int>::value));
   BOOST_STATIC_ASSERT((is_same<result_of<no_result_type_or_result(int const&)>::type, long>::value));


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk