Avoid copy of std::function-based callback in path unpacking (#6895)

* Avoid copy of std::function-based callback in path unpacking

* Fix formatting

* Update CHANGELOG.md
This commit is contained in:
Dennis Luxen
2024-05-23 18:51:51 +02:00
committed by GitHub
parent ed5003b502
commit 51b74a99aa
4 changed files with 10 additions and 7 deletions
+4 -3
View File
@@ -238,9 +238,10 @@ class MockAlgorithmDataFacade<engine::datafacade::CH>
return SPECIAL_EDGEID;
}
EdgeID FindSmallestEdge(const NodeID /* from */,
const NodeID /* to */,
std::function<bool(EdgeData)> /* filter */) const override
EdgeID
FindSmallestEdge(const NodeID /* from */,
const NodeID /* to */,
const std::function<bool(const EdgeData &)> & /* filter */) const override
{
return SPECIAL_EDGEID;
}