3 ms·
> This is a separate optimization that existed even prior to C++11 called the "named return value optimization" or NRVO for short. And by "sufficient new compil
by santaclaus 10y ago
> This is a separate optimization that existed even prior to C++11 called the "named return value optimization" or NRVO for short. And by "sufficient new compiler" you really should just say every compiler.
Aren't copy elision guarantees part of the new C++17 standard?
- banachtarski 10y agoYes but they've "practically" been happening already since the C++03 era
- AstralStorm 10y agoOn a bunch of platforms in many cases. If in doubt, check produced assembly.