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
+5
View File
@@ -29,6 +29,11 @@ public:
using ReadHandler =
std::function<void(boost::system::error_code, std::size_t)>;
SocketBase() = default;
SocketBase(const SocketBase&) = delete;
SocketBase& operator=(const SocketBase&) = delete;
virtual ~SocketBase() = default;
virtual void AsyncConnect(const std::string& host, const Endpoints& endpoints,