题主学习面向对象编程,看到这样的代码:
想问一个函数return std::move(0)与return 0在什么情况下会有差异呢?
这个程序写成return 0而不是return std::move(0)会runtime error,题主不知道为什么,可能是什么原因呢?