diff --git a/include/date/tz.h b/include/date/tz.h index b2cbc24..abcd2aa 100644 --- a/include/date/tz.h +++ b/include/date/tz.h @@ -2358,10 +2358,9 @@ namespace clock_cast_detail { template auto conv_clock(const std::chrono::time_point& st) - -> decltype(std::declval&>()(st)) + -> decltype(std::declval>()(st)) { - clock_time_conversion converter; - return converter(st); + return clock_time_conversion{}(st); } //direct triat conversion, 2nd candidate