diff --git a/include/fmt/format.h b/include/fmt/format.h index b1e685c6..2b710279 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4105,7 +4105,7 @@ struct udl_formatter { template struct udl_arg { - basic_string_view str; + const Char *str; template named_arg> operator=(T &&value) const { @@ -4150,9 +4150,9 @@ operator"" _format(const wchar_t *s, std::size_t n) { return {{s, n}}; } \endrst */ inline internal::udl_arg -operator"" _a(const char *s, std::size_t n) { return {{s, n}}; } +operator"" _a(const char *s, std::size_t n) { return {s}; } inline internal::udl_arg -operator"" _a(const wchar_t *s, std::size_t n) { return {{s, n}}; } +operator"" _a(const wchar_t *s, std::size_t n) { return {s}; } } // inline namespace literals } // namespace fmt #endif // FMT_USE_USER_DEFINED_LITERALS