|
Boost Users : |
Subject: Re: [Boost-users] [Thread] 1.53 fails to compile working code
From: Szymon Gatner (szymon.gatner_at_[hidden])
Date: 2013-02-07 17:52:15
2013/2/7 Szymon Gatner <szymon.gatner_at_[hidden]>:
> 2013/2/7 Vicente J. Botet Escriba <vicente.botet_at_[hidden]>:
>>
>> I suspect that the move constructor is missing
>>
>> Dummy(BOOST_RV_REF(Dummy) other);
>
> Nope, it is not it. In fact my actual classes that cause errors do
> have moving c-tors.
>
>>
>> and this should be removed I guess
>>
>> Dummy& operator=(BOOST_RV_REF(Dummy) other);
>>
>
> This is necessary if class is movable and all our movable classes
> implement this operator.
>
> As I said before, all is good with 1.52 and this stops us from
> upgrading. Any other suggestions?
>
Actually custom movable class is not even needed. This all boost code
does not compile too:
#include <boost/thread/future.hpp>
#include <boost/container/vector.hpp>
typedef boost::container::vector<int> V;
V createV();
int main()
{
boost::future<V> df = boost::async(&createV);
}
Now this can't be bug on my side ;)
Cheers!
-- Szymon Gatner The Lordz Games Studio www.thelordzgamesstudio.com
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