Boost logo

Boost :

Subject: Re: [boost] copy on write for std containers
From: Pierre Morcello (pmorcell-cppfrance_at_[hidden])
Date: 2010-12-04 18:23:32


Hi Luke, lucanus.j.simonson_at_[hidden] wrote: >>>"To return a container pass it by non-const reference and populate it, which avoids copy on return." Certainly, but shouldn't we promote a little more copy elision instead ? This is supposed to avoid copy on return too, or did I misunderstood it? http://cpp-next.com/archive/2009/08/want-speed-pass-by-value/ Best regards, Pierre PS: grats for the polygon lib!


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