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