Subject: Re: [boost] [1.54] [thread] MSVC build broken
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-06-15 07:02:06
Le 15/06/13 12:23, Andrey Semashev a écrit :
> I've noticed that my Boost.Log tests on MSVC are failing massively. The build
> log hints that Boost.Thread might be the culprit, and its tests are also
> failing on MSVC with the following error:
> ..\boost/thread/future.hpp(1127) : error C2248:
> 'boost::unique_lock<Mutex>::operator =' : cannot access private member
> declared in class 'boost::unique_lock<Mutex>'
> ..\boost/thread/lock_types.hpp(110) : see declaration of
> 'boost::unique_lock<Mutex>::operator ='
> This is happening on release branch. Could this be fixed?
I have no access to a windows machine now.
There were this change set
https://svn.boost.org/trac/boost/changeset/84750 that could be related.
Please could you try to revert this and let me know if this is the
source of the problems?
@@ -24,4 +24,15 @@
#else // BOOST_NO_CXX11_DELETED_FUNCTIONS
+#define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
+ private: \
+ CLASS(CLASS const&); \
+#define BOOST_THREAD_DELETE_COPY_ASSIGN(CLASS) \
+ private: \
+ CLASS& operator=(CLASS const&); \
#define BOOST_THREAD_DELETE_COPY_CTOR(CLASS) \
@@ -33,4 +44,5 @@
CLASS& operator=(CLASS&); \
#endif // BOOST_NO_CXX11_DELETED_FUNCTIONS