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

entity_traits: make page_size type explicit

Michele Caini 3 лет назад
Родитель
Сommit
c2cae37c1d
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/entt/entity/entity.hpp

+ 1 - 1
src/entt/entity/entity.hpp

@@ -70,7 +70,7 @@ public:
     /*! @brief Underlying version type. */
     using version_type = typename base_type::version_type;
     /*! @brief Page size, default is `ENTT_SPARSE_PAGE`. */
-    static constexpr auto page_size = ENTT_SPARSE_PAGE;
+    static constexpr std::size_t page_size = ENTT_SPARSE_PAGE;
 
     /**
      * @brief Converts an entity to its underlying type.