Add std::thread::id formatter

This commit is contained in:
Victor Zverovich
2022-05-17 16:37:19 -07:00
parent 9730fb0156
commit 6bf039d750
2 changed files with 11 additions and 1 deletions
+7 -1
View File
@@ -8,7 +8,9 @@
#ifndef FMT_STD_H_
#define FMT_STD_H_
#include "format.h"
#include <thread>
#include "ostream.h"
#if FMT_HAS_INCLUDE(<version>)
# include <version>
@@ -27,4 +29,8 @@ struct fmt::formatter<std::filesystem::path> : formatter<string_view> {
};
#endif
FMT_BEGIN_NAMESPACE
template <> struct formatter<std::thread::id> : ostream_formatter {};
FMT_END_NAMESPACE
#endif // FMT_STD_H_