소스 검색

snapshot: swap properly internally

Michele Caini 4 년 전
부모
커밋
4509d8a60b
1개의 변경된 파일과 2개의 추가작업 그리고 1개의 파일을 삭제
  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>