diff --git a/include/spdlog/details/attr_composer.h b/include/spdlog/details/attr_composer.h index 6a1a32bd..f9a9a853 100644 --- a/include/spdlog/details/attr_composer.h +++ b/include/spdlog/details/attr_composer.h @@ -8,7 +8,7 @@ namespace details { inline void scramble(std::string& dst, string_view_t s) { - if (s.empty()) + if (s.size() == 0) return; auto start = s.data(); diff --git a/include/spdlog/fmt/bundled/core.h b/include/spdlog/fmt/bundled/core.h index a0de87f4..f6a37af9 100644 --- a/include/spdlog/fmt/bundled/core.h +++ b/include/spdlog/fmt/bundled/core.h @@ -474,8 +474,6 @@ template class basic_string_view { /** Returns the string size. */ constexpr auto size() const noexcept -> size_t { return size_; } - constexpr auto empty() const noexcept -> bool { return size_ == 0; } - constexpr auto begin() const noexcept -> iterator { return data_; } constexpr auto end() const noexcept -> iterator { return data_ + size_; }