Browse Source

meta: move meta_dynamic_extent to fwd.hpp

Michele Caini 8 months ago
parent
commit
9f10d32b73
2 changed files with 8 additions and 4 deletions
  1. 2 4
      src/entt/meta/container.hpp
  2. 6 0
      src/entt/meta/fwd.hpp

+ 2 - 4
src/entt/meta/container.hpp

@@ -4,9 +4,9 @@
 #define ENTT_META_CONTAINER_HPP
 
 #include <array>
+#include <cstddef>
 #include <deque>
 #include <iterator>
-#include <limits>
 #include <list>
 #include <map>
 #include <set>
@@ -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<std::size_t>::max();
-
 /*! @cond TURN_OFF_DOXYGEN */
 namespace internal {
 

+ 6 - 0
src/entt/meta/fwd.hpp

@@ -1,6 +1,9 @@
 #ifndef ENTT_META_FWD_HPP
 #define ENTT_META_FWD_HPP
 
+#include <cstddef>
+#include <limits>
+
 namespace entt {
 
 class meta_ctx;
@@ -24,6 +27,9 @@ class meta_type;
 template<typename>
 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<std::size_t>::max();
+
 } // namespace entt
 
 #endif