|
Boost : |
Subject: Re: [boost] Temporary objects
From: DE (satan66613_at_[hidden])
Date: 2009-11-03 13:18:56
on 02.11.2009 at 20:52
Steven Watanabe wrote :
>> i mean that in an example like
>>
>> type foo(const type &to_be_processed)
>> {
>> type ret;
>> //processing
>> return ret;
>> }
>>
>> semantics of the copy constructor does matter
>> here nrvo likely not to take place (actually it should NOT take place)
>>
> This is exactly the case where NRVO should happen.
> (NRVO stands for named return value optimization as
> opposed to RVO which is for temporaries)
well, then my question is: _will_ it happen?
-- Pavel
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk