Tweak sys_time streaming operator to work better year and

month precision time_points.
This commit is contained in:
Howard Hinnant 2022-08-12 10:29:10 -04:00
parent 2c035f8def
commit c82b776f28

View File

@ -4206,8 +4206,8 @@ template <class CharT, class Traits, class Duration>
inline
typename std::enable_if
<
std::ratio_less<typename Duration::period, days::period>::value
, std::basic_ostream<CharT, Traits>&
!std::is_convertible<Duration, days>::value,
std::basic_ostream<CharT, Traits>&
>::type
operator<<(std::basic_ostream<CharT, Traits>& os, const sys_time<Duration>& tp)
{