diff --git a/src/blackmisc/propertyindex.h b/src/blackmisc/propertyindex.h index ce019c8ba..afd82d64f 100644 --- a/src/blackmisc/propertyindex.h +++ b/src/blackmisc/propertyindex.h @@ -241,7 +241,7 @@ namespace BlackMisc return [index = *this](const auto & a, const auto & b) { using T = std::decay_t; - return Private::compareByProperty(a, b, index, THasCompareByPropertyIndex(), THasPropertyByIndex()); + return Private::compareByProperty(a, b, index, THasComparePropertyByIndex(), THasPropertyByIndex()); }; } diff --git a/src/blackmisc/typetraits.h b/src/blackmisc/typetraits.h index 5f6d548f1..444eb836d 100644 --- a/src/blackmisc/typetraits.h +++ b/src/blackmisc/typetraits.h @@ -164,10 +164,10 @@ namespace BlackMisc * and i is an instance of CPropertyIndex. */ template > - struct THasCompareByPropertyIndex : public std::false_type {}; + struct THasComparePropertyByIndex : public std::false_type {}; //! \cond template - struct THasCompareByPropertyIndex().compareByPropertyIndex(std::declval(), std::declval()))>> : public std::true_type {}; + struct THasComparePropertyByIndex().comparePropertyByIndex(std::declval(), std::declval()))>> : public std::true_type {}; //! \endcond /*!