Boost logo

Boost :

Subject: Re: [boost] [Interprocess] Compile error with VC10
From: cg (chengang31_at_[hidden])
Date: 2010-04-22 09:57:34


On 4/22/2010 9:30 PM, Ion Gaztañaga wrote:
>> 1>ClCompile:
>> 1>boost/interprocess/detail/move.hpp(358): error C2440: 'return' :
>> cannot convert from 'boost::interprocess::mapped_region' to
>> 'boost::interprocess::mapped_region &&'
>> 1> You cannot bind an lvalue to an rvalue reference
>>
>> Any quick fix for it?
>
> Not with such little information. We need the boost version (try with
> the latest one), and more context of the error is needed.
>

I am using boost trunk.

> Has VC10 activated rvalue references by default or you've activated this
> feature?
>

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.


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