Просмотр исходного кода

meta: move meta_dynamic_extent to fwd.hpp

Michele Caini 8 месяцев назад
Родитель
Сommit
9f10d32b73
2 измененных файлов с 8 добавлено и 4 удалено
  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
 #define ENTT_META_CONTAINER_HPP
 
 
 #include <array>
 #include <array>
+#include <cstddef>
 #include <deque>
 #include <deque>
 #include <iterator>
 #include <iterator>
-#include <limits>
 #include <list>
 #include <list>
 #include <map>
 #include <map>
 #include <set>
 #include <set>
@@ -18,14 +18,12 @@
 #include "../container/dense_set.hpp"
 #include "../container/dense_set.hpp"
 #include "../core/type_traits.hpp"
 #include "../core/type_traits.hpp"
 #include "context.hpp"
 #include "context.hpp"
+#include "fwd.hpp"
 #include "meta.hpp"
 #include "meta.hpp"
 #include "type_traits.hpp"
 #include "type_traits.hpp"
 
 
 namespace entt {
 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 */
 /*! @cond TURN_OFF_DOXYGEN */
 namespace internal {
 namespace internal {
 
 

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

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