Refactoring; Avoid template<>
This commit is contained in:
parent
2b336ac147
commit
0de19acd43
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue