Refactoring; Avoid template<>

This commit is contained in:
Daniel Marjamäki 2020-02-01 08:20:08 +01:00
parent ff9c04dc28
commit 9eb6925976
1 changed files with 1 additions and 2 deletions

View File

@ -1083,8 +1083,7 @@ public:
/** Add token value. Return true if value is added. */
bool addValue(const ValueFlow::Value &value);
template<class Predicate>
void removeValues(Predicate pred) {
void removeValues(std::function<bool(const ValueFlow::Value &)> pred) {
if (mImpl->mValues)
mImpl->mValues->remove_if(pred);
}