From 53382473b3ed8266a6355de0954f324efdc5192f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 2 May 2018 18:24:48 +0200 Subject: dinput: fix clang "non-constant-expression" error --- dinput/win32-joystick.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dinput/win32-joystick.hpp') diff --git a/dinput/win32-joystick.hpp b/dinput/win32-joystick.hpp index f7ea1302..8b71b8b7 100644 --- a/dinput/win32-joystick.hpp +++ b/dinput/win32-joystick.hpp @@ -35,7 +35,7 @@ struct hash }; } -struct OTR_DINPUT_EXPORT win32_joy_ctx +struct OTR_DINPUT_EXPORT win32_joy_ctx final { using fn = std::function; @@ -97,6 +97,8 @@ private: ~enum_state(); void refresh(); const joys_t& get_joys() const; + + enum_state(enum_state const&) = delete; }; static enum_state enumerator; -- cgit v1.2.3