mirror of
https://github.com/HowardHinnant/date.git
synced 2025-01-14 01:37:57 +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
|
inline
|
||||||
typename std::enable_if
|
typename std::enable_if
|
||||||
<
|
<
|
||||||
std::ratio_less<typename Duration::period, days::period>::value
|
!std::is_convertible<Duration, days>::value,
|
||||||
, std::basic_ostream<CharT, Traits>&
|
std::basic_ostream<CharT, Traits>&
|
||||||
>::type
|
>::type
|
||||||
operator<<(std::basic_ostream<CharT, Traits>& os, const sys_time<Duration>& tp)
|
operator<<(std::basic_ostream<CharT, Traits>& os, const sys_time<Duration>& tp)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user