mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-01 03:34:45 +02:00
Replaced default spec with equivalent one, which is potentially more optimizable (#2537)
This commit is contained in:
@@ -534,9 +534,7 @@ struct formatter<std::chrono::time_point<std::chrono::system_clock, Duration>,
|
|||||||
return formatter<std::tm, Char>::format(time, ctx);
|
return formatter<std::tm, Char>::format(time, ctx);
|
||||||
}
|
}
|
||||||
|
|
||||||
static constexpr Char default_specs[] = {'%', 'Y', '-', '%', 'm', '-',
|
static constexpr Char default_specs[] = {'%', 'F', ' ', '%', 'T'};
|
||||||
'%', 'd', ' ', '%', 'H', ':',
|
|
||||||
'%', 'M', ':', '%', 'S'};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename Char, typename Duration>
|
template <typename Char, typename Duration>
|
||||||
|
Reference in New Issue
Block a user