mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-03 20:54:27 +02:00
Fix type-o in to_stream duration overload.
This commit is contained in:
2
date.h
2
date.h
@@ -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);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user