1
0
skypjack 3 сар өмнө
parent
commit
56b9486460

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

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

+ 1 - 1
src/entt/graph/flow.hpp

@@ -206,7 +206,7 @@ public:
      * @return The requested identifier.
      */
     [[nodiscard]] id_type operator[](const size_type pos) const {
-        return vertices.cbegin()[static_cast<typename task_container_type::difference_type>(pos)];
+        return vertices.cbegin()[static_cast<task_container_type::difference_type>(pos)];
     }
 
     /*! @brief Clears the flow builder. */