From c82b776f28e1802ef1b46e95dcade7d5c80a0373 Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Fri, 12 Aug 2022 10:29:10 -0400 Subject: [PATCH] Tweak sys_time streaming operator to work better year and month precision time_points. --- include/date/date.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/date/date.h b/include/date/date.h index 4ad85cc..6960e8c 100644 --- a/include/date/date.h +++ b/include/date/date.h @@ -4206,8 +4206,8 @@ template inline typename std::enable_if < - std::ratio_less::value - , std::basic_ostream& + !std::is_convertible::value, + std::basic_ostream& >::type operator<<(std::basic_ostream& os, const sys_time& tp) {