From 25682e79149c26c0651394c847d2655b773c6730 Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Mon, 4 Dec 2017 20:48:10 +0300 Subject: [PATCH] Fixed error with constructing from initializer_list --- include/fmt/format.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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