Boost logo

Boost Users :

Subject: Re: [Boost-users] [Thread] 1.53 fails to compile working code
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-02-07 16:49:42


Le 07/02/13 20:17, Szymon Gatner a écrit :
> Hello,
>
> following minimal code compiles fine with 1.52 and
> BOOST_THREAD_VERSION defined to 3 but gives compilation error with
> 1.53 release (Visual Studio 2008 SP1, Win 7):
>
> #include <boost/move/move.hpp>
> #include <boost/thread/future.hpp>
>
> class Dummy
> {
> public:
>
> Dummy& operator=(BOOST_RV_REF(Dummy) other);
>
> Dummy& operator=(BOOST_COPY_ASSIGN_REF(Dummy) other);
>
> BOOST_COPYABLE_AND_MOVABLE(Dummy);
> };
>
> Dummy createDummy();
>
> int main()
> {
> boost::future<Dummy> df = boost::async(&createDummy);
> }
I suspect that the move constructor is missing

   Dummy(BOOST_RV_REF(Dummy) other);

and this should be removed I guess

   Dummy& operator=(BOOST_RV_REF(Dummy) other);

>
>
> Btw: why BOOST_THREAD_VERSION is still 2 when documentation says it is
> 4.0.0 as of boost 1.53?
>
>
The documentation covers all the versions up to version 4.0.0. But the
default version is 2 as requested in this ML, as version 3 introduced
some not desired breaking changes.

Best,
Vicente


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net