此错误提示意味着在C++ 11标准中,移动赋值运算符不能被默认。因此,需要手动定义该函数,例如:
class Model { public: // ... Model& operator=(Model&& other) { // 通过移动赋值设置成员变量 // ... return *this; } // ... };
上一篇:编译错误:'error:‘IGN_PROFILE’wasnotdeclaredinthisscope(错误:‘IGN_PROFILE’在此作用域中未声明)”
下一篇:编译错误:'sigset_t' 的类型冲突