From 9c3c107c8c233a4d31a88745c383414bf821a6b3 Mon Sep 17 00:00:00 2001 From: Albert Santoni Date: Fri, 8 Dec 2023 12:36:33 -0500 Subject: [PATCH] Fix compile with GCC 6.3.0 (bug #3738) (#3743) --- include/fmt/core.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index b19abf37095d..baedccc13b25 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -817,7 +817,7 @@ template class buffer { protected: // Don't initialize ptr_ since it is not accessed to save a few cycles. FMT_MSC_WARNING(suppress : 26495) - buffer(size_t sz) noexcept : size_(sz), capacity_(sz) {} + FMT_CONSTEXPR buffer(size_t sz) noexcept : size_(sz), capacity_(sz) {} FMT_CONSTEXPR20 buffer(T* p = nullptr, size_t sz = 0, size_t cap = 0) noexcept : ptr_(p), size_(sz), capacity_(cap) {}