Fix build in C++17 mode: some references to `WithCompareMarker` were left addressing the old namespace. PiperOrigin-RevId: 945639767
diff --git a/riegeli/base/compare.h b/riegeli/base/compare.h index 66580b3..73a8361 100644 --- a/riegeli/base/compare.h +++ b/riegeli/base/compare.h
@@ -504,47 +504,43 @@ return RIEGELI_COMPARE(a, b) >= 0; } - template <typename Other, - std::enable_if_t< - std::conjunction_v< - std::negation<std::is_same<Other, T>>, - std::negation<std::is_base_of< - compare_internal::WithCompareMarker<Other>, Other>>, - HasCompare<Other, T>>, - int> = 0> + template < + typename Other, + std::enable_if_t<std::conjunction_v<std::negation<std::is_same<Other, T>>, + std::negation<std::is_base_of< + WithCompareMarker<Other>, Other>>, + HasCompare<Other, T>>, + int> = 0> friend bool operator<(const Other& a, const T& b) { return RIEGELI_COMPARE(a, b) < 0; } - template <typename Other, - std::enable_if_t< - std::conjunction_v< - std::negation<std::is_same<Other, T>>, - std::negation<std::is_base_of< - compare_internal::WithCompareMarker<Other>, Other>>, - HasCompare<Other, T>>, - int> = 0> + template < + typename Other, + std::enable_if_t<std::conjunction_v<std::negation<std::is_same<Other, T>>, + std::negation<std::is_base_of< + WithCompareMarker<Other>, Other>>, + HasCompare<Other, T>>, + int> = 0> friend bool operator>(const Other& a, const T& b) { return RIEGELI_COMPARE(a, b) > 0; } - template <typename Other, - std::enable_if_t< - std::conjunction_v< - std::negation<std::is_same<Other, T>>, - std::negation<std::is_base_of< - compare_internal::WithCompareMarker<Other>, Other>>, - HasCompare<Other, T>>, - int> = 0> + template < + typename Other, + std::enable_if_t<std::conjunction_v<std::negation<std::is_same<Other, T>>, + std::negation<std::is_base_of< + WithCompareMarker<Other>, Other>>, + HasCompare<Other, T>>, + int> = 0> friend bool operator<=(const Other& a, const T& b) { return RIEGELI_COMPARE(a, b) <= 0; } - template <typename Other, - std::enable_if_t< - std::conjunction_v< - std::negation<std::is_same<Other, T>>, - std::negation<std::is_base_of< - compare_internal::WithCompareMarker<Other>, Other>>, - HasCompare<Other, T>>, - int> = 0> + template < + typename Other, + std::enable_if_t<std::conjunction_v<std::negation<std::is_same<Other, T>>, + std::negation<std::is_base_of< + WithCompareMarker<Other>, Other>>, + HasCompare<Other, T>>, + int> = 0> friend bool operator>=(const Other& a, const T& b) { return RIEGELI_COMPARE(a, b) >= 0; }