Skip to content

Commit

Permalink
Fix warning: identifier '_a' preceded by whitespace in a literal oper…
Browse files Browse the repository at this point in the history
…ator declaration is deprecated (fmtlib#3748)

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
  • Loading branch information
phprus authored and happymonkey1 committed Apr 6, 2024
1 parent 1284bd4 commit 01605ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/fmt/xchar.h
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ constexpr format_arg_store<wformat_context, T...> make_wformat_args(

inline namespace literals {
#if FMT_USE_USER_DEFINED_LITERALS && !FMT_USE_NONTYPE_TEMPLATE_ARGS
constexpr detail::udl_arg<wchar_t> operator"" _a(const wchar_t* s, size_t) {
constexpr detail::udl_arg<wchar_t> operator""_a(const wchar_t* s, size_t) {
return {s};
}
#endif
Expand Down

0 comments on commit 01605ef

Please sign in to comment.