mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-26 16:01:04 +08:00
Changed invocation to match specification
Slight difference between invocation on lvalue of clock_time_conversion object and prvalue.
This commit is contained in:
parent
dd91be668e
commit
7c69f1570d
@ -2358,10 +2358,9 @@ namespace clock_cast_detail
|
||||
{
|
||||
template<typename DestClock, typename SourceClock, typename Duration>
|
||||
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 converter(st);
|
||||
return clock_time_conversion<SourceClock, DestClock>{}(st);
|
||||
}
|
||||
|
||||
//direct triat conversion, 2nd candidate
|
||||
|
Loading…
x
Reference in New Issue
Block a user