Fix type-o in to_stream duration overload.

This commit is contained in:
Howard Hinnant
2017-05-04 10:04:17 -04:00
parent 44f6dfc58e
commit e8f0dca452

2
date.h
View File

@@ -5128,7 +5128,7 @@ to_stream(std::basic_ostream<CharT, Traits>& os, const CharT* fmt,
{
using Duration = std::chrono::duration<Rep, Period>;
using CT = typename std::common_type<Duration, std::chrono::seconds>::type;
fields<Duration> fds{time_of_day<CT>{d}};
fields<CT> fds{time_of_day<CT>{d}};
to_stream(os, fmt, fds);
}