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.
gracicot
joined 1 year ago
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.