From 786a4b09682a5823915489fa6988bb64cab98c8a Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Wed, 9 Oct 2024 08:42:49 -0700 Subject: [PATCH] Cleanup fixed_string --- include/fmt/format.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 4892d682..c4c61c1a 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -1004,15 +1004,13 @@ class FMT_SO_VISIBILITY("default") format_error : public std::runtime_error { }; namespace detail_exported { -#if FMT_USE_NONTYPE_TEMPLATE_ARGS template struct fixed_string { - constexpr fixed_string(const Char (&str)[N]) { - detail::copy(static_cast(str), - str + N, data); + FMT_CONSTEXPR20 fixed_string(const Char (&s)[N]) { + detail::copy(static_cast(s), s + N, + data); } Char data[N] = {}; }; -#endif // FMT_USE_NONTYPE_TEMPLATE_ARGS // Converts a compile-time string to basic_string_view. template