![](/static/61a827a1/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/662a455d-1090-45ad-994e-302f8bfcd56e.png)
2·
2 years agoThis is actually what I did. I declared it and left a comment to explain why it needed to be left unimplemented.
This is actually what I did. I declared it and left a comment to explain why it needed to be left unimplemented.
I think compiler move return value by default, so even without NRVO you should never move a return value when it’s a local non reference variable.
I would still say “no” since they are local objects and they are gonna be moved from implicitly anyway