企业🤖AI智能体构建引擎,智能编排和调试,一键部署,支持知识库和私有化部署方案 广告
思路:将赋值运算符定义为 `private` 属性。 ```c++ class A { public: A() {} private: void operator=(const A& rhs) {} A(const A& rhs) {} }; ```