mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-25 15:21:54 +00:00
Improve xchar support for std formatters.
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
This commit is contained in:
parent
03b1b2838e
commit
9860f67cde
@ -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_
|
||||
|
Loading…
Reference in New Issue
Block a user