C++ move semantics behaving differently based on the function return type

后端 未结 0 1061
深忆病人
深忆病人 2021-02-07 02:19

I have two functions taking in an rvalue reference to a string and adding something to that string. The first function returns the modified string and the second one has return

相关标签:
回答
  • 消灭零回复
提交回复
热议问题