소스 검색

adjacency matrix: minor changes

Michele Caini 1 년 전
부모
커밋
f7f1e2162f
1개의 변경된 파일과 1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      src/entt/graph/adjacency_matrix.hpp

+ 1 - 2
src/entt/graph/adjacency_matrix.hpp

@@ -21,8 +21,7 @@ class edge_iterator {
     using size_type = std::size_t;
 
     void find_next() noexcept {
-        using diff_type = typename It::difference_type;
-        for(; pos != last && !it[static_cast<diff_type>(pos)]; pos += offset) {}
+        for(; pos != last && !it[static_cast<typename It::difference_type>(pos)]; pos += offset) {}
     }
 
 public: