diff --git a/graph/cycle_check_directed_graph.cpp b/graph/cycle_check_directed_graph.cpp index ba31b15c4..0aebd3c2e 100644 --- a/graph/cycle_check_directed_graph.cpp +++ b/graph/cycle_check_directed_graph.cpp @@ -109,7 +109,7 @@ class Graph { */ Graph(unsigned int vertices, std::vector&& edges) : m_vertices(vertices) { - for (auto&& edge : std::move(edges)) { + for (auto&& edge : edges) { if (edge.src >= vertices || edge.dest >= vertices) { throw std::range_error( "Either src or dest of edge out of range");