Commit 1ecbc2ff authored by Max Kellermann's avatar Max Kellermann

event/DeferEvent: explicitly forbid copying

parent fd8e38f8
......@@ -45,6 +45,9 @@ public:
DeferEvent(EventLoop &_loop, Callback _callback) noexcept
:loop(_loop), callback(_callback) {}
DeferEvent(const DeferEvent &) = delete;
DeferEvent &operator=(const DeferEvent &) = delete;
~DeferEvent() noexcept {
Cancel();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment