From e55a02b39a6f51c8f79b6a0a6e1d1eba0e93fba4 Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Sat, 31 Jan 2026 13:50:48 -0800 Subject: [PATCH] Minor cleanup --- include/fmt/base.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index e446739f..d322d7ce 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -501,7 +501,6 @@ template class basic_string_view { constexpr basic_string_view() noexcept : data_(nullptr), size_(0) {} constexpr basic_string_view(const Char* s, size_t count) noexcept : data_(s), size_(count) {} - constexpr basic_string_view(nullptr_t) = delete; #if FMT_GCC_VERSION FMT_ALWAYS_INLINE @@ -1732,11 +1731,9 @@ template class buffer { protected: // Don't initialize ptr_ since it is not accessed to save a few cycles. - constexpr buffer(grow_fun grow, size_t sz) noexcept + FMT_CONSTEXPR buffer(grow_fun grow, size_t sz) noexcept : size_(sz), capacity_(sz), grow_(grow) { -#if FMT_MSC_VERSION - ptr_ = nullptr; // Suppress warning 26495. -#endif + if (FMT_MSC_VERSION) ptr_ = nullptr; // Suppress warning 26495. } constexpr buffer(grow_fun grow, T* p = nullptr, size_t sz = 0,