delete copy constructor and operator assign for most classes

This commit is contained in:
Chunting Gu
2021-06-15 18:52:53 +08:00
parent b76ce67726
commit 751a3539ae
8 changed files with 25 additions and 6 deletions
+3
View File
@@ -22,6 +22,9 @@ class ClientSession {
public:
explicit ClientSession(std::size_t buffer_size = 0);
ClientSession(const ClientSession&) = delete;
ClientSession& operator=(const ClientSession&) = delete;
~ClientSession();
// Start Asio loop in a thread.