Re:Const all the things?
by tsimionescu on Monday January 24, 2022 @02:46PM
(#30062922)
Even for C++ 17, this is only guaranteed if you don't name the variable in your function. NRVO is not guaranteed at all. There is even an example downthread where gcc can't do it even at -O3.
[ Parent
| on HN ]
There are no comments on this comment yet.