Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81514 - trunk/boost/thread/detail
From: igaztanaga_at_[hidden]
Date: 2012-11-24 15:51:34


Author: igaztanaga
Date: 2012-11-24 15:51:32 EST (Sat, 24 Nov 2012)
New Revision: 81514
URL: http://svn.boost.org/trac/boost/changeset/81514

Log:
Replace undocumented Boost.Move usage with new official Boost.Move utilities.
Text files modified:
   trunk/boost/thread/detail/move.hpp | 33 +++++++++++++++++++--------------
   1 files changed, 19 insertions(+), 14 deletions(-)

Modified: trunk/boost/thread/detail/move.hpp
==============================================================================
--- trunk/boost/thread/detail/move.hpp (original)
+++ trunk/boost/thread/detail/move.hpp 2012-11-24 15:51:32 EST (Sat, 24 Nov 2012)
@@ -17,7 +17,7 @@
 #endif
 
 #include <boost/thread/detail/delete.hpp>
-#include <boost/move/move.hpp>
+#include <boost/move/utility.hpp>
 #include <boost/config/abi_prefix.hpp>
 
 namespace boost
@@ -26,7 +26,7 @@
     namespace detail
     {
       template <typename T>
- struct has_move_emulation_enabled_aux_dummy_specialization;
+ struct enable_move_utility_emulation_dummy_specialization;
         template<typename T>
         struct thread_move_t
         {
@@ -49,6 +49,7 @@
         };
     }
 
+#if !defined BOOST_THREAD_USES_MOVE
 
 #ifndef BOOST_NO_SFINAE
     template<typename T>
@@ -65,6 +66,8 @@
     }
 }
 
+#endif //#if !defined BOOST_THREAD_USES_MOVE
+
 #if ! defined BOOST_NO_CXX11_RVALUE_REFERENCES
 
 #define BOOST_THREAD_RV_REF(TYPE) BOOST_RV_REF(TYPE)
@@ -78,10 +81,10 @@
 #define BOOST_THREAD_DCL_MOVABLE_BEG(T) \
   namespace detail { \
     template <typename T> \
- struct has_move_emulation_enabled_aux_dummy_specialization<
+ struct enable_move_utility_emulation_dummy_specialization<
 
 #define BOOST_THREAD_DCL_MOVABLE_END > \
- : integral_constant<bool, true> \
+ : integral_constant<bool, false> \
       {}; \
     }
 
@@ -98,10 +101,10 @@
 #define BOOST_THREAD_DCL_MOVABLE_BEG(T) \
   namespace detail { \
     template <typename T> \
- struct has_move_emulation_enabled_aux_dummy_specialization<
+ struct enable_move_utility_emulation_dummy_specialization<
 
 #define BOOST_THREAD_DCL_MOVABLE_END > \
- : integral_constant<bool, true> \
+ : integral_constant<bool, false> \
       {}; \
     }
 
@@ -118,10 +121,10 @@
 #define BOOST_THREAD_DCL_MOVABLE_BEG(T) \
   namespace detail { \
     template <typename T> \
- struct has_move_emulation_enabled_aux_dummy_specialization<
+ struct enable_move_utility_emulation_dummy_specialization<
 
 #define BOOST_THREAD_DCL_MOVABLE_END > \
- : integral_constant<bool, true> \
+ : integral_constant<bool, false> \
       {}; \
     }
 
@@ -135,17 +138,19 @@
 
 #define BOOST_THREAD_DCL_MOVABLE(TYPE) \
 template <> \
-struct has_move_emulation_enabled_aux< TYPE > \
- : BOOST_MOVE_BOOST_NS::integral_constant<bool, true> \
-{};
+struct enable_move_utility_emulation< TYPE > \
+{ \
+ static const bool value = false; \
+};
 
 #define BOOST_THREAD_DCL_MOVABLE_BEG(T) \
 template <typename T> \
-struct has_move_emulation_enabled_aux<
+struct enable_move_utility_emulation<
 
 #define BOOST_THREAD_DCL_MOVABLE_END > \
- : BOOST_MOVE_BOOST_NS::integral_constant<bool, true> \
-{};
+{ \
+ static const bool value = false; \
+};
 
 #endif
 


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