Boost logo

Boost :

Subject: Re: [boost] [Interprocess] Compile error with VC10
From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2010-04-24 17:39:21


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


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