
3 Nov
2009
3 Nov
'09
6:18 p.m.
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