forked from OSchip/llvm-project
eaadc45156
As per [time.duration.cons]/1, the constructor constraint should be on const Rep2&. As it is now the code will fail to compile in certain cases, for example (https://godbolt.org/z/c7fPrcTYM): struct S{ operator int() const&& noexcept = delete; operator int() const& noexcept; }; const S &fun(); auto k = std::chrono::microseconds{fun()}; Differential Revision: https://reviews.llvm.org/D118902 |
||
---|---|---|
.. | ||
time.cal | ||
time.clock | ||
time.clock.req | ||
time.duration | ||
time.hms | ||
time.point | ||
time.traits | ||
clock.h | ||
days.pass.cpp | ||
hours.pass.cpp | ||
microseconds.pass.cpp | ||
milliseconds.pass.cpp | ||
minutes.pass.cpp | ||
months.pass.cpp | ||
nanoseconds.pass.cpp | ||
rep.h | ||
seconds.pass.cpp | ||
weeks.pass.cpp | ||
years.pass.cpp |