diff --git a/include/SFML/Window/Event.hpp b/include/SFML/Window/Event.hpp index e73515c73..627144915 100644 --- a/include/SFML/Window/Event.hpp +++ b/include/SFML/Window/Event.hpp @@ -329,10 +329,10 @@ private: static constexpr bool isEventType = isInParameterPack(decltype(m_data)()); }; -#include - } // namespace sf +#include + //////////////////////////////////////////////////////////// /// \class sf::Event diff --git a/include/SFML/Window/Event.inl b/include/SFML/Window/Event.inl index eded3de39..ef62cac1e 100644 --- a/include/SFML/Window/Event.inl +++ b/include/SFML/Window/Event.inl @@ -30,6 +30,14 @@ // to compile the code within the compiletime conditional when // an incorrect template parameter is provided. +//////////////////////////////////////////////////////////// +// Headers +//////////////////////////////////////////////////////////// +#include // NOLINT(misc-header-include-cycle) + + +namespace sf +{ //////////////////////////////////////////////////////////// template Event::Event(const T& t) @@ -58,3 +66,5 @@ const T* Event::getIf() const if constexpr (isEventType) return std::get_if(&m_data); } + +} // namespace sf