Changed invocation to match specification

Slight difference between invocation on lvalue of clock_time_conversion
object and prvalue.
This commit is contained in:
Tomasz Kamiński 2017-11-25 22:01:10 +01:00
parent dd91be668e
commit 7c69f1570d

View File

@ -2358,10 +2358,9 @@ namespace clock_cast_detail
{ {
template<typename DestClock, typename SourceClock, typename Duration> template<typename DestClock, typename SourceClock, typename Duration>
auto conv_clock(const std::chrono::time_point<SourceClock, Duration>& st) auto conv_clock(const std::chrono::time_point<SourceClock, Duration>& st)
-> decltype(std::declval<clock_time_conversion<SourceClock, DestClock>&>()(st)) -> decltype(std::declval<clock_time_conversion<SourceClock, DestClock>>()(st))
{ {
clock_time_conversion<SourceClock, DestClock> converter; return clock_time_conversion<SourceClock, DestClock>{}(st);
return converter(st);
} }
//direct triat conversion, 2nd candidate //direct triat conversion, 2nd candidate