Add std::thread::id formatter
This commit is contained in:
+7
-1
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user