

1·
3 years agoI 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 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.
This is actually what I did. I declared it and left a comment to explain why it needed to be left unimplemented.