File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ struct utf8_iterator {
4343 friend constexpr auto operator ==(self_type, const char8_t * other_ptr) noexcept {
4444 return *other_ptr == char8_t {0 };
4545 }
46- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
46+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
4747 friend constexpr auto operator !=(self_type, const char8_t * other_ptr) noexcept {
4848 return *other_ptr != char8_t {0 };
4949 }
@@ -60,7 +60,7 @@ struct utf8_iterator {
6060
6161 const char8_t * ptr{nullptr };
6262 const char8_t * end{nullptr };
63- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
63+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
6464 constexpr friend bool operator !=(const utf8_iterator & lhs, sentinel) {
6565 return lhs.ptr < lhs.end ;
6666 }
@@ -85,7 +85,7 @@ struct utf8_iterator {
8585 return lhs.ptr == rhs.ptr ;
8686 }
8787
88- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
88+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
8989 constexpr friend bool operator !=(sentinel, const utf8_iterator & rhs) {
9090 return rhs.ptr < rhs.end ;
9191 }
Original file line number Diff line number Diff line change @@ -3136,7 +3136,7 @@ struct utf8_iterator {
31363136 friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept {
31373137 return *other_ptr == char8_t{0};
31383138 }
3139- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
3139+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
31403140 friend constexpr auto operator!=(self_type, const char8_t * other_ptr) noexcept {
31413141 return *other_ptr != char8_t{0};
31423142 }
@@ -3153,7 +3153,7 @@ struct utf8_iterator {
31533153
31543154 const char8_t * ptr{nullptr};
31553155 const char8_t * end{nullptr};
3156- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
3156+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
31573157 constexpr friend bool operator!=(const utf8_iterator & lhs, sentinel) {
31583158 return lhs.ptr < lhs.end;
31593159 }
@@ -3178,7 +3178,7 @@ struct utf8_iterator {
31783178 return lhs.ptr == rhs.ptr;
31793179 }
31803180
3181- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
3181+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
31823182 constexpr friend bool operator!=(sentinel, const utf8_iterator & rhs) {
31833183 return rhs.ptr < rhs.end;
31843184 }
Original file line number Diff line number Diff line change @@ -3133,7 +3133,7 @@ struct utf8_iterator {
31333133 friend constexpr auto operator ==(self_type, const char8_t * other_ptr) noexcept {
31343134 return *other_ptr == char8_t {0 };
31353135 }
3136- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
3136+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
31373137 friend constexpr auto operator !=(self_type, const char8_t * other_ptr) noexcept {
31383138 return *other_ptr != char8_t {0 };
31393139 }
@@ -3150,7 +3150,7 @@ struct utf8_iterator {
31503150
31513151 const char8_t * ptr{nullptr };
31523152 const char8_t * end{nullptr };
3153- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
3153+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
31543154 constexpr friend bool operator !=(const utf8_iterator & lhs, sentinel) {
31553155 return lhs.ptr < lhs.end ;
31563156 }
@@ -3175,7 +3175,7 @@ struct utf8_iterator {
31753175 return lhs.ptr == rhs.ptr ;
31763176 }
31773177
3178- #if defined(__cpp_impl_three_way_comparison) && __cpp_impl_three_way_comparison < 201907L
3178+ #if ! defined(__cpp_impl_three_way_comparison) || __cpp_impl_three_way_comparison < 201907L
31793179 constexpr friend bool operator !=(sentinel, const utf8_iterator & rhs) {
31803180 return rhs.ptr < rhs.end ;
31813181 }
You can’t perform that action at this time.
0 commit comments