Improve xchar support for std formatters.

Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
Vladislav Shchapov 2022-05-18 18:07:24 +05:00 committed by Victor Zverovich
parent 03b1b2838e
commit 9860f67cde

View File

@ -20,12 +20,15 @@
# include <filesystem>
FMT_BEGIN_NAMESPACE
template <> struct formatter<std::filesystem::path> : ostream_formatter {};
template <typename Char>
struct formatter<std::filesystem::path, Char> : basic_ostream_formatter<Char> {
};
FMT_END_NAMESPACE
#endif
FMT_BEGIN_NAMESPACE
template <> struct formatter<std::thread::id> : ostream_formatter {};
template <typename Char>
struct formatter<std::thread::id, Char> : basic_ostream_formatter<Char> {};
FMT_END_NAMESPACE
#endif // FMT_STD_H_