"llvm/git@repo.hca.bsc.es:rferrer/llvm-epi-0.8.git" did not exist on "22fbe8d709bfeb27f8268d9767c9a0b1a7d8cc2e"
[libc++] Fix chrono::duration constructor constraint
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
Loading
Please register or sign in to comment