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
#include 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