From 01605efc946e0a8cf9223e221b0dd22cd41a9c16 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Sat, 9 Dec 2023 21:16:57 +0500 Subject: [PATCH] Fix warning: identifier '_a' preceded by whitespace in a literal operator declaration is deprecated (#3748) Signed-off-by: Vladislav Shchapov --- include/fmt/xchar.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/xchar.h b/include/fmt/xchar.h index 625ec36922e9..2bf8c27649de 100644 --- a/include/fmt/xchar.h +++ b/include/fmt/xchar.h @@ -70,7 +70,7 @@ constexpr format_arg_store make_wformat_args( inline namespace literals { #if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_ARGS -constexpr detail::udl_arg operator"" _a(const wchar_t* s, size_t) { +constexpr detail::udl_arg operator""_a(const wchar_t* s, size_t) { return {s}; } #endif