Fix issue in the toposort algorithm and move-only types

This commit is contained in:
Alexander Karatarakis 2017-04-12 19:29:43 -07:00
parent 5cd921c2b5
commit 76f2c557ef

View File

@ -40,7 +40,7 @@ namespace vcpkg::Graphs
case ExplorationStatus::NOT_EXPLORED:
{
status = ExplorationStatus::PARTIALLY_EXPLORED;
const U& vertex_data = f.load_vertex_data(vertex);
U vertex_data = f.load_vertex_data(vertex);
for (const V& neighbour : f.adjacency_list(vertex_data))
topological_sort_internal(neighbour, f, exploration_status, sorted);