Boost logo

Boost :

Subject: Re: [boost] [multiprecision] Some rvalue reference experiments (performance inhancements #1)
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2012-06-30 14:16:56


AMDG

On 06/30/2012 11:08 AM, John Maddock wrote:
>> The safe solution is returning Number, not Number&&. If Dave reads
>> this message, he can probably point us to previous discussions about
>> this. Being able to return Number&& would be great...
>
> Can you explain why it's unsafe given that we know that the value
> returned is an rvalue ref already?
>

I'm guessing that it has something to
do with temporary lifetimes?

In Christ,
Steven Watanabe


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