Enable the converting constructor to actually work.

This commit is contained in:
Howard Hinnant
2016-06-27 22:18:44 -04:00
parent e54e4c64f8
commit 7331f36318

1
tz.h
View File

@@ -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");