From 0de19acd43968e7ea91cf1cbe5b3a3fa6e4fb327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Feb 2020 08:32:14 +0100 Subject: [PATCH] Refactoring; Avoid template<> --- lib/pathanalysis.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/pathanalysis.h b/lib/pathanalysis.h index 3353c7b84..e335a8e74 100644 --- a/lib/pathanalysis.h +++ b/lib/pathanalysis.h @@ -36,8 +36,7 @@ struct PathAnalysis { return Progress::Continue; }); } - template - Info forwardFind(Predicate pred) { + Info forwardFind(std::function pred) { Info result{}; forward([&](const Info& info) { if (pred(info)) {