[libcxx-commits] [PATCH] D139235: Revert "Revert "[libc++][ranges]Refactor `copy{, _backward}` and `move{, _backward}`""

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 6 12:48:16 PST 2022


ldionne added inline comments.


================
Comment at: libcxx/test/libcxx/algorithms/alg.modifying.operations/copy_move_nontrivial.pass.cpp:151-152
+requires std::is_pointer_v<T>
+constexpr T make(int) {
+  return nullptr;
+}
----------------
I would do something like this?

```
static constexpr T array[N] = {...};
return array + i;
```

Another option would be to use a file-scope variable template.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D139235/new/

https://reviews.llvm.org/D139235



More information about the libcxx-commits mailing list