Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r84718 - trunk/boost/thread/detail
From: vicente.botet_at_[hidden]
Date: 2013-06-09 17:29:17


Author: viboes
Date: 2013-06-09 17:29:17 EDT (Sun, 09 Jun 2013)
New Revision: 84718
URL: http://svn.boost.org/trac/boost/changeset/84718

Log:
Thread: used cons& in deleted constructors and assignment simulation.

Text files modified:
   trunk/boost/thread/detail/delete.hpp | 12 ++++++++++++
   1 files changed, 12 insertions(+), 0 deletions(-)

Modified: trunk/boost/thread/detail/delete.hpp
==============================================================================
--- trunk/boost/thread/detail/delete.hpp Sun Jun 9 13:18:15 2013 (r84717)
+++ trunk/boost/thread/detail/delete.hpp 2013-06-09 17:29:17 EDT (Sun, 09 Jun 2013) (r84718)
@@ -23,6 +23,17 @@
       CLASS& operator=(CLASS const&) = delete;
 
 #else // BOOST_NO_CXX11_DELETED_FUNCTIONS
+#if defined(BOOST_MSVC)
+#define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
+ private: \
+ CLASS(CLASS const&); \
+ public:
+
+#define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
+ private: \
+ CLASS& operator=(CLASS const&); \
+ public:
+#else
 #define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
     private: \
       CLASS(CLASS&); \
@@ -32,6 +43,7 @@
     private: \
       CLASS& operator=(CLASS&); \
     public:
+#endif
 #endif // BOOST_NO_CXX11_DELETED_FUNCTIONS
 
 /**


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