ext-fmt/include/fmt/std.h
Vladislav Shchapov 9860f67cde Improve xchar support for std formatters.
Signed-off-by: Vladislav Shchapov <vladislav@shchapov.ru>
2022-05-28 07:48:02 -07:00

35 lines
710 B
C++

// Formatting library for C++ - formatters for standard library types
//
// Copyright (c) 2012 - present, Victor Zverovich
// All rights reserved.
//
// For the license information refer to format.h.
#ifndef FMT_STD_H_
#define FMT_STD_H_
#include <thread>
#include "ostream.h"
#if FMT_HAS_INCLUDE(<version>)
# include <version>
#endif
#ifdef __cpp_lib_filesystem
# include <filesystem>
FMT_BEGIN_NAMESPACE
template <typename Char>
struct formatter<std::filesystem::path, Char> : basic_ostream_formatter<Char> {
};
FMT_END_NAMESPACE
#endif
FMT_BEGIN_NAMESPACE
template <typename Char>
struct formatter<std::thread::id, Char> : basic_ostream_formatter<Char> {};
FMT_END_NAMESPACE
#endif // FMT_STD_H_