Sfoglia il codice sorgente

edge_iterator: const correctness

Michele Caini 1 anno fa
parent
commit
eb1e055941
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/entt/graph/adjacency_matrix.hpp

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

@@ -46,7 +46,7 @@ public:
     }
     }
 
 
     constexpr edge_iterator operator++(int) noexcept {
     constexpr edge_iterator operator++(int) noexcept {
-        edge_iterator orig = *this;
+        const edge_iterator orig = *this;
         return ++(*this), orig;
         return ++(*this), orig;
     }
     }