Back out the support for operator<=> in our iterators

Reason: It required operator<=> for the underlying container, and
boost::container::small_vector doesn't support it.
This commit is contained in:
Gennaro Prota
2025-09-10 12:06:36 +02:00
parent 969c7e0947
commit f997c1fa7f
2 changed files with 0 additions and 16 deletions

View File

@@ -24,9 +24,6 @@
#include "boost/dynamic_bitset_fwd.hpp"
#include "boost/limits.hpp"
#include "boost/static_assert.hpp"
#if __cpp_lib_three_way_comparison
#include <compare>
#endif
#include <iosfwd>
#include <string>
#include <vector>

View File

@@ -206,18 +206,6 @@ operator==( const bit_iterator_base< Iterator > & lhs, const bit_iterator_base<
return lhs.m_block_iterator == rhs.m_block_iterator && lhs.m_bit_index == rhs.m_bit_index;
}
#if __cpp_lib_three_way_comparison
template< typename Iterator >
std::strong_ordering
operator<=>( const bit_iterator_base< Iterator > & lhs, const bit_iterator_base< Iterator > & rhs )
{
if ( const auto cmp = lhs.m_block_iterator <=> rhs.m_block_iterator; cmp != 0 ) {
return cmp;
} else {
return lhs.m_bit_index <=> rhs.m_bit_index;
}
}
#else
template< typename Iterator >
bool
operator!=( const bit_iterator_base< Iterator > & lhs, const bit_iterator_base< Iterator > & rhs )
@@ -253,7 +241,6 @@ operator>=( const bit_iterator_base< Iterator > & lhs, const bit_iterator_base<
{
return !( lhs < rhs );
}
#endif // __cpp_lib_three_way_comparison
template< typename Iterator >
std::ptrdiff_t