Browse Source

adjacency matrix: minor changes

Michele Caini 1 year ago
parent
commit
f7f1e2162f
1 changed files with 1 additions and 2 deletions
  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;
     using size_type = std::size_t;
 
 
     void find_next() noexcept {
     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:
 public: