Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81492 - trunk/boost/move
From: marshall_at_[hidden]
Date: 2012-11-23 09:57:04


Author: marshall
Date: 2012-11-23 09:57:04 EST (Fri, 23 Nov 2012)
New Revision: 81492
URL: http://svn.boost.org/trac/boost/changeset/81492

Log:
Remove usage of deprecated macros
Text files modified:
   trunk/boost/move/move.hpp | 38 +++++++++++++++++++-------------------
   trunk/boost/move/move_helpers.hpp | 10 +++++-----
   2 files changed, 24 insertions(+), 24 deletions(-)

Modified: trunk/boost/move/move.hpp
==============================================================================
--- trunk/boost/move/move.hpp (original)
+++ trunk/boost/move/move.hpp 2012-11-23 09:57:04 EST (Fri, 23 Nov 2012)
@@ -195,7 +195,7 @@
 #endif //BOOST_MOVE_AVOID_BOOST_DEPENDENCIES
 
 //Compiler workaround detection
-#if !defined(BOOST_NO_RVALUE_REFERENCES)
+#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
 
    #if defined(__GNUC__) && (__GNUC__ == 4) && (__GNUC_MINOR__ < 5) && !defined(__clang__)
       //Pre-standard rvalue binding rules
@@ -214,7 +214,7 @@
 
 #endif //#if !defined(BOOST_MOVE_DOXYGEN_INVOKED)
 
-#if defined(BOOST_NO_RVALUE_REFERENCES) && !defined(BOOST_MOVE_DOXYGEN_INVOKED)
+#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) && !defined(BOOST_MOVE_DOXYGEN_INVOKED)
 
    //Move emulation rv breaks standard aliasing rules so add workarounds for some compilers
    #if defined(__GNUC__) && (__GNUC__ >= 4)
@@ -454,7 +454,7 @@
 
    } //namespace boost
 
-#else //BOOST_NO_RVALUE_REFERENCES
+#else //BOOST_NO_CXX11_RVALUE_REFERENCES
 
    namespace boost{
 
@@ -645,7 +645,7 @@
 
    #endif //#if !defined(BOOST_MOVE_DOXYGEN_INVOKED)
 
-#endif //BOOST_NO_RVALUE_REFERENCES
+#endif //BOOST_NO_CXX11_RVALUE_REFERENCES
 
 namespace boost {
 
@@ -666,7 +666,7 @@
    public:
    typedef It iterator_type;
    typedef typename std::iterator_traits<iterator_type>::value_type value_type;
- #if !defined(BOOST_NO_RVALUE_REFERENCES) || defined(BOOST_MOVE_DOXYGEN_INVOKED)
+ #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_MOVE_DOXYGEN_INVOKED)
    typedef value_type && reference;
    #else
    typedef typename BOOST_MOVE_MPL_NS::if_
@@ -695,7 +695,7 @@
 
    reference operator*() const
    {
- #if defined(BOOST_NO_RVALUE_REFERENCES) || defined(BOOST_MOVE_OLD_RVALUE_REF_BINDING_RULES)
+ #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_MOVE_OLD_RVALUE_REF_BINDING_RULES)
       return *m_it;
       #else
       return ::boost::move(*m_it);
@@ -731,7 +731,7 @@
 
    reference operator[](difference_type n) const
    {
- #if defined(BOOST_NO_RVALUE_REFERENCES) || defined(BOOST_MOVE_OLD_RVALUE_REF_BINDING_RULES)
+ #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || defined(BOOST_MOVE_OLD_RVALUE_REF_BINDING_RULES)
       return m_it[n];
       #else
       return ::boost::move(m_it[n]);
@@ -1167,9 +1167,9 @@
 
 // Code from Jeffrey Lee Hellrung, many thanks
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T> struct forward_type { typedef T type; };
-#else // #ifndef BOOST_NO_RVALUE_REFERENCES
+#else // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T>
    struct forward_type
    { typedef const T &type; };
@@ -1177,16 +1177,16 @@
    template< class T>
    struct forward_type< boost::rv<T> >
    { typedef T type; };
-#endif // #ifndef BOOST_NO_RVALUE_REFERENCES
+#endif // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 
 
 
 // Code from Jeffrey Lee Hellrung, many thanks
 
 template< class T > struct is_rvalue_reference : BOOST_MOVE_BOOST_NS::integral_constant<bool, false> { };
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T > struct is_rvalue_reference< T&& > : BOOST_MOVE_BOOST_NS::integral_constant<bool, true> { };
-#else // #ifndef BOOST_NO_RVALUE_REFERENCES
+#else // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T > struct is_rvalue_reference< boost::rv<T>& >
       : BOOST_MOVE_BOOST_NS::integral_constant<bool, true>
    {};
@@ -1194,11 +1194,11 @@
    template< class T > struct is_rvalue_reference< const boost::rv<T>& >
       : BOOST_MOVE_BOOST_NS::integral_constant<bool, true>
    {};
-#endif // #ifndef BOOST_NO_RVALUE_REFERENCES
+#endif // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T > struct add_rvalue_reference { typedef T&& type; };
-#else // #ifndef BOOST_NO_RVALUE_REFERENCES
+#else // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    namespace detail_add_rvalue_reference
    {
       template< class T
@@ -1222,13 +1222,13 @@
    struct add_rvalue_reference<T &>
    { typedef T & type; };
 
-#endif // #ifndef BOOST_NO_RVALUE_REFERENCES
+#endif // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 
 template< class T > struct remove_rvalue_reference { typedef T type; };
 
-#ifndef BOOST_NO_RVALUE_REFERENCES
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T > struct remove_rvalue_reference< T&& > { typedef T type; };
-#else // #ifndef BOOST_NO_RVALUE_REFERENCES
+#else // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
    template< class T > struct remove_rvalue_reference< rv<T> > { typedef T type; };
    template< class T > struct remove_rvalue_reference< const rv<T> > { typedef T type; };
    template< class T > struct remove_rvalue_reference< volatile rv<T> > { typedef T type; };
@@ -1237,7 +1237,7 @@
    template< class T > struct remove_rvalue_reference< const rv<T>& > { typedef T type; };
    template< class T > struct remove_rvalue_reference< volatile rv<T>& > { typedef T type; };
    template< class T > struct remove_rvalue_reference< const volatile rv<T>& >{ typedef T type; };
-#endif // #ifndef BOOST_NO_RVALUE_REFERENCES
+#endif // #ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
 
 template <typename T>
 typename boost::move_detail::add_rvalue_reference<T>::type declval();

Modified: trunk/boost/move/move_helpers.hpp
==============================================================================
--- trunk/boost/move/move_helpers.hpp (original)
+++ trunk/boost/move/move_helpers.hpp 2012-11-23 09:57:04 EST (Fri, 23 Nov 2012)
@@ -15,16 +15,16 @@
 #include <boost/move/move.hpp>
 #include <boost/type_traits/is_class.hpp>
 
-#if defined(BOOST_NO_RVALUE_REFERENCES) || (defined(_MSC_VER) && (_MSC_VER == 1600))
+#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || (defined(_MSC_VER) && (_MSC_VER == 1600))
 #include <boost/type_traits/is_same.hpp>
 #include <boost/utility/enable_if.hpp>
 #endif
-#if defined(BOOST_NO_RVALUE_REFERENCES)
+#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
 #include <boost/mpl/if.hpp>
 #endif
 
 
-#if defined(BOOST_NO_RVALUE_REFERENCES)
+#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
 struct not_a_type;
 #define BOOST_MOVE_CATCH_CONST(U) \
    typename ::boost::mpl::if_< ::boost::is_class<U>, BOOST_CATCH_CONST_RLVALUE(U), const U &>::type
@@ -37,7 +37,7 @@
 #define BOOST_MOVE_CATCH_FWD(U) U &&
 #endif
 
-#ifdef BOOST_NO_RVALUE_REFERENCES
+#ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
 
 #define BOOST_MOVE_CONVERSION_AWARE_CATCH(PUB_FUNCTION, TYPE, RETURN_VALUE, FWD_FUNCTION)\
    RETURN_VALUE PUB_FUNCTION(BOOST_MOVE_CATCH_CONST(TYPE) x)\
@@ -104,7 +104,7 @@
 #endif
 
 
-#ifdef BOOST_NO_RVALUE_REFERENCES
+#ifdef BOOST_NO_CXX11_RVALUE_REFERENCES
 
 #define BOOST_MOVE_CONVERSION_AWARE_CATCH_1ARG(PUB_FUNCTION, TYPE, RETURN_VALUE, FWD_FUNCTION, ARG1)\
    RETURN_VALUE PUB_FUNCTION(ARG1 arg1, BOOST_MOVE_CATCH_CONST(TYPE) x)\


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