diff --git a/include/fmt/format.h b/include/fmt/format.h index 5a410390..b1e685c6 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -4134,9 +4134,9 @@ constexpr internal::udl_formatter operator""_format() { \endrst */ inline internal::udl_formatter -operator"" _format(const char *s, std::size_t n) { return {s, n}; } +operator"" _format(const char *s, std::size_t n) { return {{s, n}}; } inline internal::udl_formatter -operator"" _format(const wchar_t *s, std::size_t n) { return {s, n}; } +operator"" _format(const wchar_t *s, std::size_t n) { return {{s, n}}; } # endif // FMT_UDL_TEMPLATE /** @@ -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, n}}; } 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, n}}; } } // inline namespace literals } // namespace fmt #endif // FMT_USE_USER_DEFINED_LITERALS