Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions include/date/tz.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -1769,7 +1773,11 @@ make_zoned(TimeZonePtr zone, const local_time<Duration>& tp, choose c)
template <class Duration>
inline
zoned_time<typename std::common_type<Duration, std::chrono::seconds>::type>
#if HAS_STRING_VIEW
make_zoned(std::string_view name, const local_time<Duration>& tp)
#else
make_zoned(const std::string& name, const local_time<Duration>& tp)
#endif
{
return zoned_time<typename std::common_type<Duration,
std::chrono::seconds>::type>(name, tp);
Expand All @@ -1778,7 +1786,11 @@ make_zoned(const std::string& name, const local_time<Duration>& tp)
template <class Duration>
inline
zoned_time<typename std::common_type<Duration, std::chrono::seconds>::type>
#if HAS_STRING_VIEW
make_zoned(std::string_view name, const local_time<Duration>& tp, choose c)
#else
make_zoned(const std::string& name, const local_time<Duration>& tp, choose c)
#endif
{
return zoned_time<typename std::common_type<Duration,
std::chrono::seconds>::type>(name, tp, c);
Expand All @@ -1795,7 +1807,11 @@ make_zoned(TimeZonePtr zone, const zoned_time<Duration, TimeZonePtr>& zt)
template <class Duration, class TimeZonePtr>
inline
zoned_time<Duration, TimeZonePtr>
#if HAS_STRING_VIEW
make_zoned(std::string_view name, const zoned_time<Duration, TimeZonePtr>& zt)
#else
make_zoned(const std::string& name, const zoned_time<Duration, TimeZonePtr>& zt)
#endif
{
return zoned_time<Duration, TimeZonePtr>(name, zt);
}
Expand All @@ -1811,7 +1827,11 @@ make_zoned(TimeZonePtr zone, const zoned_time<Duration, TimeZonePtr>& zt, choose
template <class Duration, class TimeZonePtr>
inline
zoned_time<Duration, TimeZonePtr>
#if HAS_STRING_VIEW
make_zoned(std::string_view name, const zoned_time<Duration, TimeZonePtr>& zt, choose c)
#else
make_zoned(const std::string& name, const zoned_time<Duration, TimeZonePtr>& zt, choose c)
#endif
{
return zoned_time<Duration, TimeZonePtr>(name, zt, c);
}
Expand All @@ -1837,7 +1857,11 @@ make_zoned(TimeZonePtr zone, const sys_time<Duration>& st)
template <class Duration>
inline
zoned_time<typename std::common_type<Duration, std::chrono::seconds>::type>
#if HAS_STRING_VIEW
make_zoned(std::string_view name, const sys_time<Duration>& st)
#else
make_zoned(const std::string& name, const sys_time<Duration>& st)
#endif
{
return zoned_time<typename std::common_type<Duration,
std::chrono::seconds>::type>(name, st);
Expand Down