From 7331f363187afc29cbe7bbdcf16e1e48ee91d9cb Mon Sep 17 00:00:00 2001 From: Howard Hinnant Date: Mon, 27 Jun 2016 22:18:44 -0400 Subject: [PATCH] Enable the converting constructor to actually work. --- tz.h | 1 + 1 file changed, 1 insertion(+) diff --git a/tz.h b/tz.h index 4ce5928..f828da6 100644 --- a/tz.h +++ b/tz.h @@ -274,6 +274,7 @@ public: operator<<(std::basic_ostream& os, const zoned_time& t); private: + template friend class zoned_time; static_assert(std::is_convertible::value, "zoned_time must have a precision of seconds or finer");