فهرست منبع

snapshot: try to suppress a warning from older versions of gcc

Michele Caini 2 سال پیش
والد
کامیت
6594da85f1
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      src/entt/entity/snapshot.hpp

+ 2 - 2
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");
         }
     }