Fixed trait so "compare" is properly called

This commit is contained in:
Klaus Basan
2018-05-11 05:28:50 +02:00
parent 0f9b275f52
commit 60ad3d9c2b
2 changed files with 3 additions and 3 deletions

View File

@@ -241,7 +241,7 @@ namespace BlackMisc
return [index = *this](const auto & a, const auto & b)
{
using T = std::decay_t<decltype(a)>;
return Private::compareByProperty(a, b, index, THasCompareByPropertyIndex<T>(), THasPropertyByIndex<T>());
return Private::compareByProperty(a, b, index, THasComparePropertyByIndex<T>(), THasPropertyByIndex<T>());
};
}