diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index e9cc0fa63..3d7695ef0 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -46,7 +46,7 @@ void orphans(Registry ®istry) { template class basic_snapshot { static_assert(!std::is_const_v, "Non-const registry type required"); - using traits_type = typename Registry::traits_type; + using traits_type = entt_traits; public: /*! Basic registry type. */ @@ -149,7 +149,7 @@ private: template class basic_snapshot_loader { static_assert(!std::is_const_v, "Non-const registry type required"); - using traits_type = typename Registry::traits_type; + using traits_type = entt_traits; public: /*! Basic registry type. */ @@ -261,7 +261,7 @@ private: template class basic_continuous_loader { static_assert(!std::is_const_v, "Non-const registry type required"); - using traits_type = typename Registry::traits_type; + using traits_type = entt_traits; void restore(typename Registry::entity_type entt) { if(const auto entity = to_entity(entt); remloc.contains(entity) && remloc[entity].first == entt) {