From 6594da85f12da7d57466b72dd3e5cb8a95dc4361 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Tue, 20 Jun 2023 12:15:14 +0200 Subject: [PATCH] snapshot: try to suppress a warning from older versions of gcc --- src/entt/entity/snapshot.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entt/entity/snapshot.hpp b/src/entt/entity/snapshot.hpp index 97dadebe3..c5df1df6e 100644 --- a/src/entt/entity/snapshot.hpp +++ b/src/entt/entity/snapshot.hpp @@ -172,8 +172,8 @@ public: basic_snapshot_loader(registry_type &source) noexcept : reg{&source} { // restoring a snapshot as a whole requires a clean registry - for([[maybe_unused]] auto [id, elem]: source.storage()) { - ENTT_ASSERT(elem.empty(), "Registry must be empty"); + for([[maybe_unused]] auto elem: source.storage()) { + ENTT_ASSERT(elem.second.empty(), "Registry must be empty"); } }