Skip to content
This repository was archived by the owner on Aug 16, 2024. It is now read-only.

Commit 1a12527

Browse files
committed
显式删除MiraiBot类的复制构造函数与赋值构造函数;
1 parent 3df42bb commit 1a12527

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/mirai_bot.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ namespace Cyan
4444
* \param port port
4545
*/
4646
MiraiBot(const string& host, int port);
47+
MiraiBot(const MiraiBot&) = delete;
48+
MiraiBot& operator=(const MiraiBot&) = delete;
4749
~MiraiBot();
4850

4951
/**

0 commit comments

Comments
 (0)