
24 Apr
2010
24 Apr
'10
9:39 p.m.
On 22/04/2010 15:57, cg wrote:
I think VC10 should activate rvalue reference by default. And I have tried to compile the code with and without BOOST_HAS_RVALUE_REFS defined, but got the same error.
However I think VC10 move semantics are broken, e.g. this does not compile //Movable is not copyable, private copy constructor movable function() { movable m; return boost::move(m); } int main() { //ERROR: error C2248: 'movable::movable' : //cannot access private member declared in class 'movable' movable m(function()); return 0; } So I'm afraid