diff --git a/2019/20.cpp b/2019/20.cpp index 5c0321f..ef2235b 100644 --- a/2019/20.cpp +++ b/2019/20.cpp @@ -128,7 +128,7 @@ auto SolveMaze(Distances const& distances, bool const recursive) -> std::int64_t todo.emplace(0, 0, "-AA"); while(!todo.empty()) { - auto const& [steps, depth, name] = todo.top(); + auto const [steps, depth, name] = std::move(todo.top()); todo.pop(); if (name == "-ZZ") { return steps; } if (seen.emplace(depth, name).second) {