Refactoring; Avoid template<>

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

View File

@ -4612,8 +4612,7 @@ static bool isInBounds(const ValueFlow::Value& value, MathLib::bigint x)
return true;
}
template<class Compare>
static const ValueFlow::Value* getCompareIntValue(const std::list<ValueFlow::Value>& values, Compare compare)
static const ValueFlow::Value* getCompareIntValue(const std::list<ValueFlow::Value>& values, std::function<bool(MathLib::bigint, MathLib::bigint)> compare)
{
const ValueFlow::Value* result = nullptr;
for (const ValueFlow::Value& value : values) {