Refactoring; Avoid template<>

This commit is contained in:
Daniel Marjamäki 2020-02-01 08:32:14 +01:00
parent 2b336ac147
commit 0de19acd43
1 changed files with 1 additions and 2 deletions

View File

@ -36,8 +36,7 @@ struct PathAnalysis {
return Progress::Continue; return Progress::Continue;
}); });
} }
template<class Predicate> Info forwardFind(std::function<bool(const Info&)> pred) {
Info forwardFind(Predicate pred) {
Info result{}; Info result{};
forward([&](const Info& info) { forward([&](const Info& info) {
if (pred(info)) { if (pred(info)) {