minus-squaregracicot@discuss.tchncs.deOPtoC++@discuss.tchncs.de•The move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New ThinglinkfedilinkEnglisharrow-up1·1 year 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. linkfedilink
gracicot@discuss.tchncs.de to C++@discuss.tchncs.deEnglish · 1 year agoThe move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New Thingplus-squaredevblogs.microsoft.comexternal-linkmessage-square6fedilinkarrow-up18arrow-down10
arrow-up18arrow-down1external-linkThe move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New Thingplus-squaredevblogs.microsoft.comgracicot@discuss.tchncs.de to C++@discuss.tchncs.deEnglish · 1 year agomessage-square6fedilink
gracicot@discuss.tchncs.de to C++@discuss.tchncs.deEnglish · edit-21 year agoTrip report: Summer ISO C++ standards meeting (Varna, Bulgaria)plus-squareherbsutter.comexternal-linkmessage-square0fedilinkarrow-up16arrow-down10
arrow-up16arrow-down1external-linkTrip report: Summer ISO C++ standards meeting (Varna, Bulgaria)plus-squareherbsutter.comgracicot@discuss.tchncs.de to C++@discuss.tchncs.deEnglish · edit-21 year agomessage-square0fedilink
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.