mirror of
https://github.com/HowardHinnant/date.git
synced 2024-12-28 01:04:54 +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>
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user