From 0190301e09d3ecf42f6343793336411bce820617 Mon Sep 17 00:00:00 2001 From: Dustin Spicuzza Date: Mon, 7 Nov 2022 12:30:03 -0500 Subject: [PATCH] [wpilibc] Explicitly mark EventLoop as non-copyable/non-movable (#4579) It's already not movable because m_bindings isn't copyable, but pybind11 isn't able to detect that --- wpilibc/src/main/native/include/frc/event/EventLoop.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wpilibc/src/main/native/include/frc/event/EventLoop.h b/wpilibc/src/main/native/include/frc/event/EventLoop.h index 8b0daf8da1..11ead4fadc 100644 --- a/wpilibc/src/main/native/include/frc/event/EventLoop.h +++ b/wpilibc/src/main/native/include/frc/event/EventLoop.h @@ -16,6 +16,9 @@ class EventLoop { public: EventLoop(); + EventLoop(const EventLoop&) = delete; + EventLoop& operator=(const EventLoop&) = delete; + /** * Bind a new action to run whenever the condition is true. *