From 9eb6925976372ccaea20ab4daba131a40ab4cb19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Sat, 1 Feb 2020 08:20:08 +0100 Subject: [PATCH] Refactoring; Avoid template<> --- lib/token.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/token.h b/lib/token.h index e457de3ba..074cc1595 100644 --- a/lib/token.h +++ b/lib/token.h @@ -1083,8 +1083,7 @@ public: /** Add token value. Return true if value is added. */ bool addValue(const ValueFlow::Value &value); - template - void removeValues(Predicate pred) { + void removeValues(std::function pred) { if (mImpl->mValues) mImpl->mValues->remove_if(pred); }