mirror of
https://github.com/boostorg/parser.git
synced 2026-01-19 04:22:13 +00:00
auto -> bool for null_sentinel_t op== for compatibility with
equality_comparable_with on Clang.
This commit is contained in:
@@ -943,23 +943,23 @@ namespace boost::parser::detail { namespace text {
|
||||
#else
|
||||
template<typename I>
|
||||
#endif
|
||||
friend constexpr auto operator==(I it, null_sentinel_t)
|
||||
friend constexpr bool operator==(I it, null_sentinel_t)
|
||||
{
|
||||
return *it == detail::iter_value_t<I>{};
|
||||
}
|
||||
#if !defined(__cpp_impl_three_way_comparison)
|
||||
template<typename I>
|
||||
friend constexpr auto operator==(null_sentinel_t, I it)
|
||||
friend constexpr bool operator==(null_sentinel_t, I it)
|
||||
{
|
||||
return *it == detail::iter_value_t<I>{};
|
||||
}
|
||||
template<typename I>
|
||||
friend constexpr auto operator!=(I it, null_sentinel_t)
|
||||
friend constexpr bool operator!=(I it, null_sentinel_t)
|
||||
{
|
||||
return *it != detail::iter_value_t<I>{};
|
||||
}
|
||||
template<typename I>
|
||||
friend constexpr auto operator!=(null_sentinel_t, I it)
|
||||
friend constexpr bool operator!=(null_sentinel_t, I it)
|
||||
{
|
||||
return *it != detail::iter_value_t<I>{};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user