[C++-sig] Re: operators and avoiding copying

David Abrahams dave at boost-consulting.com
Tue Jul 13 20:53:17 CEST 2004


"Neal D. Becker" <ndbecker2 at verizon.net> writes:

> I want to learn how to implement operators (for arithmetic) while avoiding
> copying large objects.
>
>
> Question is, does it make unnecessary copies of the vectors and if so, how
> to avoid this?  I'd assume that return value optimization is possible.  Any
> way to learn more?  Staring at the code is not easy.

I suggest you try using a debugger to find out.  That's what I'd do if
I were going to answer your question.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com




More information about the Cplusplus-sig mailing list