Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 325 Bytes

exercise_13_54.md

File metadata and controls

7 lines (4 loc) · 325 Bytes

练习13.54:如果我们为HasPtr定义了移动赋值运算符,但未改变拷贝并交换运算符,会发生什么?编写代码验证你的答案。


error: ambiguous overload for ‘operator=’ (operand types are ‘HasPtr’ and ‘std::remove_reference<HasPtr&>::type {aka HasPtr}’)

PS: 不是很懂。