4 ms·
Did you look at the generated assembly of your demo? RVO probably didn't happen there. "returns_a_foo" was most likely inlined into main and then there was no n
by mbel 10y ago
Did you look at the generated assembly of your demo? RVO probably didn't happen there. "returns_a_foo" was most likely inlined into main and then there was no need of eliding a copy.
I'm not saying that you are wrong, only that your demo poorly demonstrates what you are arguing.
- balls187 10y agoThis is why I love HN.