mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-25 23:40:53 +08:00
Tweak sys_time streaming operator to work better year and
month precision time_points.
This commit is contained in:
parent
2c035f8def
commit
c82b776f28
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user