mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-01 03:34:26 +02:00
Tweak sys_time streaming operator to work better year and
month precision time_points.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user