Jelajahi Sumber

snapshot: swap properly internally

Michele Caini 4 tahun lalu
induk
melakukan
4509d8a60b
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      src/entt/entity/snapshot.hpp

+ 2 - 1
src/entt/entity/snapshot.hpp

@@ -340,7 +340,8 @@ class basic_continuous_loader {
             }
             }
         }
         }
 
 
-        std::swap(container, other);
+        using std::swap;
+        swap(container, other);
     }
     }
 
 
     template<typename Container>
     template<typename Container>