From 51dd3312fcf77957e69c5ef736fa49882f862e0e Mon Sep 17 00:00:00 2001 From: WPMGPRoSToTeMa Date: Tue, 5 Dec 2017 16:25:38 +0300 Subject: [PATCH] Reverted changes in _a udl and udl_arg --- include/fmt/format.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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