From 0e0d88f65eba7749866977ece5e73fdce1f379b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Feb 2020 08:39:58 +0100 Subject: [PATCH] Refactoring; Avoid template<> --- lib/astutils.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/astutils.cpp b/lib/astutils.cpp index 630d713b3..3bc4afb8d 100644 --- a/lib/astutils.cpp +++ b/lib/astutils.cpp @@ -517,8 +517,7 @@ static void followVariableExpressionError(const Token *tok1, const Token *tok2, errors->push_back(item); } -template -static void findTokenValue(const Token* const tok, Predicate pred, F f) +static void findTokenValue(const Token* const tok, std::function pred, std::function f) { auto x = std::find_if(tok->values().begin(), tok->values().end(), pred); if (x != tok->values().end())