reformat file

This commit is contained in:
sunmy 2021-06-11 10:05:04 +08:00
parent 6ab8616075
commit 972be9bd44

View File

@ -451,9 +451,7 @@ FMT_END_DETAIL_NAMESPACE
template <typename Char, typename Duration> template <typename Char, typename Duration>
struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>, struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
Char> : formatter<std::tm, Char> { Char> : formatter<std::tm, Char> {
FMT_CONSTEXPR formatter() { FMT_CONSTEXPR formatter() { this->specs = {default_specs, 17}; }
this->specs = {default_specs, 17};
}
template <typename ParseContext> template <typename ParseContext>
FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) { FMT_CONSTEXPR auto parse(ParseContext& ctx) -> decltype(ctx.begin()) {
@ -473,8 +471,8 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
} }
static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-', static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-',
'%', 'd', ' ', '%', 'H', ':', '%', 'd', ' ', '%', 'H', ':',
'%', 'M', ':', '%', 'S'}; '%', 'M', ':', '%', 'S'};
}; };
template <typename Char, typename Duration> template <typename Char, typename Duration>