Skip to content

Commit

Permalink
Merge pull request #268 from Drew-j-Smith/main
Browse files Browse the repository at this point in the history
  • Loading branch information
hanickadot committed Sep 22, 2022
2 parents 5758728 + 48af740 commit 1ca2fa8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions include/ctre/utf8.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ struct utf8_iterator {
friend auto operator==(self_type, self_type) noexcept -> bool;
auto operator*() noexcept -> reference;

friend constexpr auto operator==(self_type, const char8_t * ptr) noexcept {
return *ptr == char8_t{0};
friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept {
return *other_ptr == char8_t{0};
}
};

Expand Down
4 changes: 2 additions & 2 deletions single-header/ctre-unicode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3062,8 +3062,8 @@ struct utf8_iterator {
friend auto operator==(self_type, self_type) noexcept -> bool;
auto operator*() noexcept -> reference;

friend constexpr auto operator==(self_type, const char8_t * ptr) noexcept {
return *ptr == char8_t{0};
friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept {
return *other_ptr == char8_t{0};
}
};

Expand Down
4 changes: 2 additions & 2 deletions single-header/ctre.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -3059,8 +3059,8 @@ struct utf8_iterator {
friend auto operator==(self_type, self_type) noexcept -> bool;
auto operator*() noexcept -> reference;

friend constexpr auto operator==(self_type, const char8_t * ptr) noexcept {
return *ptr == char8_t{0};
friend constexpr auto operator==(self_type, const char8_t * other_ptr) noexcept {
return *other_ptr == char8_t{0};
}
};

Expand Down

0 comments on commit 1ca2fa8

Please sign in to comment.