forked from HowardHinnant/date
Changed invocation to match specification
Slight difference between invocation on lvalue of clock_time_conversion object and prvalue.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user