Explorar o código

adjacency matrix: minor changes

Michele Caini hai 1 ano
pai
achega
f7f1e2162f
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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: