diff --git a/include/SFML/Window/Keyboard.hpp b/include/SFML/Window/Keyboard.hpp index 9077ce1c6..df07844d8 100644 --- a/include/SFML/Window/Keyboard.hpp +++ b/include/SFML/Window/Keyboard.hpp @@ -159,7 +159,7 @@ enum class Key /// //////////////////////////////////////////////////////////// // NOLINTNEXTLINE(readability-identifier-naming) -static constexpr unsigned int KeyCount{static_cast(Key::Pause) + 1}; +inline constexpr unsigned int KeyCount{static_cast(Key::Pause) + 1}; //////////////////////////////////////////////////////////// /// \brief Scancodes @@ -333,7 +333,7 @@ using Scancode = Scan; /// //////////////////////////////////////////////////////////// // NOLINTNEXTLINE(readability-identifier-naming) -static constexpr unsigned int ScancodeCount{static_cast(Scan::LaunchMediaSelect) + 1}; +inline constexpr unsigned int ScancodeCount{static_cast(Scan::LaunchMediaSelect) + 1}; //////////////////////////////////////////////////////////// /// \brief Check if a key is pressed