From 9f10d32b736b52887df2b74a250c4e5b74c55a88 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 21 Jul 2025 12:02:35 +0200 Subject: [PATCH] meta: move meta_dynamic_extent to fwd.hpp --- src/entt/meta/container.hpp | 6 ++---- src/entt/meta/fwd.hpp | 6 ++++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/src/entt/meta/container.hpp b/src/entt/meta/container.hpp index 4ca4cb022..8f0295e72 100644 --- a/src/entt/meta/container.hpp +++ b/src/entt/meta/container.hpp @@ -4,9 +4,9 @@ #define ENTT_META_CONTAINER_HPP #include +#include #include #include -#include #include #include #include @@ -18,14 +18,12 @@ #include "../container/dense_set.hpp" #include "../core/type_traits.hpp" #include "context.hpp" +#include "fwd.hpp" #include "meta.hpp" #include "type_traits.hpp" namespace entt { -/*! @brief Used to identicate that a sequence container has not a fixed size. */ -inline constexpr std::size_t meta_dynamic_extent = std::numeric_limits::max(); - /*! @cond TURN_OFF_DOXYGEN */ namespace internal { diff --git a/src/entt/meta/fwd.hpp b/src/entt/meta/fwd.hpp index 1114f480a..25097ccaf 100644 --- a/src/entt/meta/fwd.hpp +++ b/src/entt/meta/fwd.hpp @@ -1,6 +1,9 @@ #ifndef ENTT_META_FWD_HPP #define ENTT_META_FWD_HPP +#include +#include + namespace entt { class meta_ctx; @@ -24,6 +27,9 @@ class meta_type; template class meta_factory; +/*! @brief Used to identicate that a sequence container has not a fixed size. */ +inline constexpr std::size_t meta_dynamic_extent = std::numeric_limits::max(); + } // namespace entt #endif