mirror of
https://github.com/boostorg/dynamic_bitset.git
synced 2026-01-19 04:12:09 +00:00
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:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user