From 9860f67cde021da0ed9740f208265ab08523d675 Mon Sep 17 00:00:00 2001 From: Vladislav Shchapov Date: Wed, 18 May 2022 18:07:24 +0500 Subject: [PATCH] Improve xchar support for std formatters. Signed-off-by: Vladislav Shchapov --- include/fmt/std.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/include/fmt/std.h b/include/fmt/std.h index 2a75d8ff..4a7df19c 100644 --- a/include/fmt/std.h +++ b/include/fmt/std.h @@ -20,12 +20,15 @@ # include FMT_BEGIN_NAMESPACE -template <> struct formatter : ostream_formatter {}; +template +struct formatter : basic_ostream_formatter { +}; FMT_END_NAMESPACE #endif FMT_BEGIN_NAMESPACE -template <> struct formatter : ostream_formatter {}; +template +struct formatter : basic_ostream_formatter {}; FMT_END_NAMESPACE #endif // FMT_STD_H_