Re: RVO (let the compiler copy)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 19 Dec 2013, Henrik Mannerström wrote:

This question came up on SO (
http://stackoverflow.com/questions/7320520/optimizing-the-number-of-constructor-calls)
and I was baffled since it went against the mantra "let the compiler do
the copying". Do you have an idea of what is going on? Why is the
commented version of operator+ worse?

See:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57176

--
Marc Glisse




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux