mirror of
https://github.com/HowardHinnant/date.git
synced 2025-08-01 03:34:26 +02:00
Enable the converting constructor to actually work.
This commit is contained in:
1
tz.h
1
tz.h
@@ -274,6 +274,7 @@ public:
|
||||
operator<<(std::basic_ostream<CharT, Traits>& os, const zoned_time<Duration1>& t);
|
||||
|
||||
private:
|
||||
template <class D> friend class zoned_time;
|
||||
|
||||
static_assert(std::is_convertible<std::chrono::seconds, Duration>::value,
|
||||
"zoned_time must have a precision of seconds or finer");
|
||||
|
Reference in New Issue
Block a user