你能告诉我这里发生了什么吗?为什么有可能呢?
std::make_unique<int>(1) = std::make_unique<int>(1);
我以为这make_unique返回了一个r值......
make_unique
编辑: 你能提供一些这种结构的有用例子吗?
c++ unique-ptr c++14
c++ ×1
c++14 ×1
unique-ptr ×1