forked from fmtlib/fmt
35 lines
710 B
C++
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_
|