This patch implements std::to_array based on P0325R3.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
- Build Status
Buildable 38060 Build 38059: arc lint + arc unit
Event Timeline
libcxx/include/array | ||
---|---|---|
500 | Why is_constructible<_Tp, _Tp&>? - this seems wrong. | |
510 | You can use the _v versions here; this is C++20 | |
libcxx/test/std/containers/sequences/array/array.creation/to_array.pass.cpp | ||
21 | We have a nice move-only type in "MoveOnly.h". |
Why is_constructible<_Tp, _Tp&>? - this seems wrong.
At the very least, the second one should be const T&.
But even better would be is_copy_constructible<_Tp> - because that's what you're going to do.