From 7870cbfa56d227f7f20e3f3ce1aa232fb498e69b Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Mon, 11 Mar 2024 11:14:23 +0100 Subject: [PATCH] snapshot: avoid using registry traits_type --- src/entt/entity/snapshot.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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) {