diff --git a/tz.h b/tz.h index e02e45d..fb8af00 100644 --- a/tz.h +++ b/tz.h @@ -1656,7 +1656,7 @@ inline zoned_time::type> make_zoned(const sys_time& tp) { - return (tp); + return zoned_time::type>(tp); } template ::type, TimeZonePtr> make_zoned(TimeZonePtr zone, const local_time& tp) { - return (std::move(zone), tp); + return zoned_time::type, + TimeZonePtr>(std::move(zone), tp); } template ::type, TimeZonePtr> make_zoned(TimeZonePtr zone, const local_time& tp, choose c) { - return (std::move(zone), tp, c); + return zoned_time::type, + TimeZonePtr>(std::move(zone), tp, c); } template @@ -1716,7 +1718,8 @@ inline zoned_time::type> make_zoned(const std::string& name, const local_time& tp) { - return (name, tp); + return zoned_time::type>(name, tp); } template @@ -1724,7 +1727,8 @@ inline zoned_time::type> make_zoned(const std::string& name, const local_time& tp, choose c) { - return (name, tp, c); + return zoned_time::type>(name, tp, c); } template @@ -1732,7 +1736,7 @@ inline zoned_time make_zoned(TimeZonePtr zone, const zoned_time& zt) { - return (std::move(zone), zt); + return zoned_time(std::move(zone), zt); } template @@ -1740,7 +1744,7 @@ inline zoned_time make_zoned(const std::string& name, const zoned_time& zt) { - return (name, zt); + return zoned_time(name, zt); } template @@ -1748,7 +1752,7 @@ inline zoned_time make_zoned(TimeZonePtr zone, const zoned_time& zt, choose c) { - return (std::move(zone), zt, c); + return zoned_time(std::move(zone), zt, c); } template @@ -1756,7 +1760,7 @@ inline zoned_time make_zoned(const std::string& name, const zoned_time& zt, choose c) { - return (name, zt, c); + return zoned_time(name, zt, c); } template ::type, TimeZonePtr> make_zoned(TimeZonePtr zone, const sys_time& st) { - return (std::move(zone), st); + return zoned_time::type, + TimeZonePtr>(std::move(zone), st); } template @@ -1777,7 +1782,8 @@ inline zoned_time::type> make_zoned(const std::string& name, const sys_time& st) { - return (name, st); + return zoned_time::type>(name, st); } template