diff --git a/src/corelib/global/qcompare.h b/src/corelib/global/qcompare.h index eb4167168e7..89809df6393 100644 --- a/src/corelib/global/qcompare.h +++ b/src/corelib/global/qcompare.h @@ -107,7 +107,7 @@ private: // instead of the exposition only is_ordered member in [cmp.partialord], // use a private function - constexpr bool isOrdered() noexcept + constexpr bool isOrdered() const noexcept { return m_order != static_cast(QtPrivate::Uncomparable::Unordered); } QtPrivate::CompareUnderlyingType m_order;