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