![](/static/253f0d9b/assets/icons/icon-96x96.png)
![](https://programming.dev/pictrs/image/662a455d-1090-45ad-994e-302f8bfcd56e.png)
2·
1 year 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