From ef6d53595de9bda548c4d705f40ab6bc8eaba1e9 Mon Sep 17 00:00:00 2001 From: Tony Walker Date: Sat, 9 Sep 2017 18:35:13 -0400 Subject: [PATCH] Fix CHAR_BIT not found by including climits. --- date.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/date.h b/date.h index 5476bf7..4780aa8 100644 --- a/date.h +++ b/date.h @@ -33,6 +33,7 @@ #include #include #include +#include #if !(__cplusplus >= 201402) # include #endif @@ -4665,10 +4666,10 @@ to_stream(std::basic_ostream& os, const CharT* fmt, auto d = static_cast(static_cast(fds.ymd.day())); if (d < 10) os << ' '; - os << d << ' ' + os << d << ' ' << make_time(duration_cast(fds.tod.to_duration())) << ' ' << fds.ymd.year(); - + } else // *fmt == 'x' {