diff --git a/include/date/tz.h b/include/date/tz.h index 73b897b7..73c5ec96 100644 --- a/include/date/tz.h +++ b/include/date/tz.h @@ -1725,7 +1725,11 @@ make_zoned(TimeZonePtr z) inline zoned_seconds +#if HAS_STRING_VIEW +make_zoned(std::string_view name) +#else make_zoned(const std::string& name) +#endif { return zoned_seconds(name); } @@ -1769,7 +1773,11 @@ make_zoned(TimeZonePtr zone, const local_time& tp, choose c) template inline zoned_time::type> +#if HAS_STRING_VIEW +make_zoned(std::string_view name, const local_time& tp) +#else make_zoned(const std::string& name, const local_time& tp) +#endif { return zoned_time::type>(name, tp); @@ -1778,7 +1786,11 @@ make_zoned(const std::string& name, const local_time& tp) template inline zoned_time::type> +#if HAS_STRING_VIEW +make_zoned(std::string_view name, const local_time& tp, choose c) +#else make_zoned(const std::string& name, const local_time& tp, choose c) +#endif { return zoned_time::type>(name, tp, c); @@ -1795,7 +1807,11 @@ make_zoned(TimeZonePtr zone, const zoned_time& zt) template inline zoned_time +#if HAS_STRING_VIEW +make_zoned(std::string_view name, const zoned_time& zt) +#else make_zoned(const std::string& name, const zoned_time& zt) +#endif { return zoned_time(name, zt); } @@ -1811,7 +1827,11 @@ make_zoned(TimeZonePtr zone, const zoned_time& zt, choose template inline zoned_time +#if HAS_STRING_VIEW +make_zoned(std::string_view name, const zoned_time& zt, choose c) +#else make_zoned(const std::string& name, const zoned_time& zt, choose c) +#endif { return zoned_time(name, zt, c); } @@ -1837,7 +1857,11 @@ make_zoned(TimeZonePtr zone, const sys_time& st) template inline zoned_time::type> +#if HAS_STRING_VIEW +make_zoned(std::string_view name, const sys_time& st) +#else make_zoned(const std::string& name, const sys_time& st) +#endif { return zoned_time::type>(name, st);