Boost logo

Boost :

Subject: Re: [boost] [move] problem with msvc and BOOST_MOVABLE_BUT_NOT_COPYABLE
From: Oliver Kowalke (k-oli_at_[hidden])
Date: 2010-05-27 16:04:59


Am 27.05.2010 21:28, schrieb Thomas Klimpel:
> The statement "return x" must make some constructor call. As x is not a temporary, the compiler must call the copy constructor. It will probably work if you write "return boost::move(x)" or "return X()".

thx - maybe the docu should be more clear in this point


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk