event/SocketEvent: forbid copying

This commit is contained in:
Max Kellermann 2020-10-18 20:07:48 +02:00
parent a60e782959
commit 418ba96334

View File

@ -92,6 +92,9 @@ public:
Cancel();
}
SocketEvent(const SocketEvent &) = delete;
SocketEvent &operator=(const SocketEvent &) = delete;
auto &GetEventLoop() const noexcept {
return loop;
}