diff --git a/include/ctre/utf8.hpp b/include/ctre/utf8.hpp index 49a7c0b6..28e0f2cf 100644 --- a/include/ctre/utf8.hpp +++ b/include/ctre/utf8.hpp @@ -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}; } }; diff --git a/single-header/ctre-unicode.hpp b/single-header/ctre-unicode.hpp index 8ffefc53..d7ffb0c1 100644 --- a/single-header/ctre-unicode.hpp +++ b/single-header/ctre-unicode.hpp @@ -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}; } }; diff --git a/single-header/ctre.hpp b/single-header/ctre.hpp index 8d8673b3..5f8da189 100644 --- a/single-header/ctre.hpp +++ b/single-header/ctre.hpp @@ -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}; } };