Commit 9860f67c authored by Vladislav Shchapov's avatar Vladislav Shchapov Committed by Victor Zverovich

Improve xchar support for std formatters.

Signed-off-by: default avatarVladislav Shchapov <vladislav@shchapov.ru>
parent 03b1b283
...@@ -20,12 +20,15 @@ ...@@ -20,12 +20,15 @@
# include <filesystem> # include <filesystem>
FMT_BEGIN_NAMESPACE 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 FMT_END_NAMESPACE
#endif #endif
FMT_BEGIN_NAMESPACE 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 FMT_END_NAMESPACE
#endif // FMT_STD_H_ #endif // FMT_STD_H_
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment