diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index 0ee0871ec..4292d553e 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -173,7 +173,7 @@ class basic_snapshot_loader { entity_type entt{}; - if constexpr(std::tuple_size_vtemplate view().get({}))> == 0) { + if constexpr(ignore_as_empty_v>) { while(length--) { archive(entt); const auto entity = reg->valid(entt) ? entt : reg->create(entt); @@ -392,7 +392,7 @@ class basic_continuous_loader { entity_type entt{}; - if constexpr(std::tuple_size_vtemplate view().get({}))> == 0) { + if constexpr(ignore_as_empty_v>) { while(length--) { archive(entt); restore(entt);