Boost logo

Boost :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2002-06-18 05:48:58


From: "Alexander Terekhov" <alexander.terekhov_at_[hidden]>
> P.P.S. Peter, returning your current shared_ptr [e.g. as in
> make_shared() above) COULD result in temporarily addrefs/unrefs;
> exactly this problem could be solved via auto_ptr-like 'move'
> semantics and an extra '.clone() const' for explicit addrefs.
> Or am I just missing something here as well?

No, you are right; but once shared_ptr is in std:: I'd expect everyone to
have the RVO in place.


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