gracicot@discuss.tchncs.de to C++@discuss.tchncs.deEnglish · 2 years agoThe move constructor that you have to declare, even though you don't want anyone to actually call it - The Old New Thingdevblogs.microsoft.comexternal-linkmessage-square6fedilinkarrow-up18arrow-down10cross-posted to: [email protected][email protected]
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 Thingdevblogs.microsoft.comgracicot@discuss.tchncs.de to C++@discuss.tchncs.deEnglish · 2 years agomessage-square6fedilinkcross-posted to: [email protected][email protected]
minus-squaretunetardislinkfedilinkEnglisharrow-up1·2 years agoWell the test3 example FTA gives a case where NRVO would not happen because of the conditional return value. Are you suggesting that you need not std::move even in this case?
Well the
test3
example FTA gives a case where NRVO would not happen because of the conditional return value. Are you suggesting that you need notstd::move
even in this case?