Enable modernize-use-integer-sign-comparison check (#4581)

Signed-off-by: Niels Lohmann <mail@nlohmann.me>
This commit is contained in:
Niels Lohmann
2025-01-02 13:24:05 +01:00
committed by GitHub
parent 4f64d8d0b4
commit f038ac4c9d
5 changed files with 9 additions and 10 deletions

View File

@@ -28,7 +28,7 @@ class alt_string
public:
using value_type = std::string::value_type;
static constexpr auto npos = static_cast<std::size_t>(-1);
static constexpr auto npos = (std::numeric_limits<std::size_t>::max)();
alt_string(const char* str): str_impl(str) {}
alt_string(const char* str, std::size_t count): str_impl(str, count) {}