From 879040a8fea5f44a87eea431d11433680ff9d6c9 Mon Sep 17 00:00:00 2001 From: Pavel Novikov Date: Tue, 19 Oct 2021 20:20:17 +0300 Subject: [PATCH] fixed 'constexpr'-ness of ctor with length calculation --- include/fmt/core.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index c5f378b2..cd54f81c 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -1112,8 +1112,8 @@ enum class type { template struct basic_c_string_view : basic_string_view { using basic_string_view::basic_string_view; - FMT_CONSTEXPR basic_c_string_view() = default; - FMT_CONSTEXPR basic_c_string_view(const Char* val) + constexpr basic_c_string_view() = default; + FMT_CONSTEXPR_CHAR_TRAITS basic_c_string_view(const Char* val) : basic_string_view{ val, val ? std::char_traits::length(val) : 0} {} };