Skip to content

Commit

Permalink
Improve xchar support for std formatters.
Browse files Browse the repository at this point in the history
Signed-off-by: Vladislav Shchapov <[email protected]>
  • Loading branch information
phprus committed May 27, 2022
1 parent c3aa180 commit 6d700ab
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_

0 comments on commit 6d700ab

Please sign in to comment.