
4 Dec
2010
4 Dec
'10
11:23 p.m.
Hi Luke, lucanus.j.simonson@intel.com 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!