9The move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New Thing devblogs.microsoft.comc/cpp · by gracicot@discuss.tchncs.de · 3y · 6 comments
6Trip report: Summer ISO C++ standards meeting (Varna, Bulgaria) herbsutter.comc/cpp · by gracicot@discuss.tchncs.de · 3y · 0 comments
on The move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New Thing · c/cpp · 3 pts · 3yThis is actually what I did. I declared it and left a comment to explain why it needed to be left unimplemented.
on The move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New Thing · c/cpp · 1 pts · 3yI 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.
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.