Talk:Copy elision

Proposed merge with Return value optimization
These two articles are brief and closely related. Theemathas (talk) 11:31, 7 July 2015 (UTC)


 * Good idea. Maybe title to a new article C++ compiler optimizations and merge as-if rule into it as well? Q VVERTYVS (hm?) 15:51, 22 January 2016 (UTC)
 * Agreed and ✅ Klbrain (talk) 12:19, 11 November 2017 (UTC)

As if
It's condescending for the article to define what "as if" means. It appears as if the author thinks we's stoopit. — Preceding unsigned comment added by 2602:306:3398:DD10:60AF:596D:E68C:754 (talk) 23:41, 26 November 2017 (UTC)


 * It's not stupid. The C++ Standard has an "as if" rule. That is what the author is alluding to. He talking about the rule, not telling you what "as if' means. 67.241.240.42 (talk) 17:29, 24 June 2024 (UTC)

Not C++ only
"In C++ computer programming ..." but Nim also has copy elision and NRVO too. https://nim-lang.github.io/Nim/manual.html#procedures-nrvo — Preceding unsigned comment added by Juancarlospaco (talk • contribs) 23:51, 28 February 2021 (UTC)

"In the current revision of the C++ standard (C++11)"
there's a sentence in the article that says the current revision of C++ is C++11 -- shouldn't this be edited or updated?? jasper jon (talk) 11:33, 7 February 2022 (UTC)