Przeglądaj źródła

entity: add base_type

Michele Caini 3 lat temu
rodzic
commit
3520d6915c
1 zmienionych plików z 2 dodań i 0 usunięć
  1. 2 0
      src/entt/entity/entity.hpp

+ 2 - 0
src/entt/entity/entity.hpp

@@ -153,6 +153,8 @@ public:
  */
 template<typename Type>
 struct entt_traits: basic_entt_traits<internal::entt_traits<Type>> {
+    /*! @brief Base type. */
+    using base_type = basic_entt_traits<internal::entt_traits<Type>>;
     /*! @brief Page size, default is `ENTT_SPARSE_PAGE`. */
     static constexpr std::size_t page_size = ENTT_SPARSE_PAGE;
 };