From 7c69f1570d51d5d3d66a5ea6baaa5175b15ea487 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Kami=C5=84ski?= Date: Sat, 25 Nov 2017 22:01:10 +0100 Subject: [PATCH] Changed invocation to match specification Slight difference between invocation on lvalue of clock_time_conversion object and prvalue. --- include/date/tz.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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