[libcxx-commits] [libcxx] [libc++][ranges][enumerate_view] Update iterator `iter_move` test (PR #219474)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Sun Aug 30 18:54:22 PDT 2026


================
@@ -38,19 +44,48 @@ constexpr void test() {
 
   std::array array{0, 1, 2, 3, 4};
----------------
frederick-vs-ja wrote:

I'd like to leave this in a concentrated cleaning-up PR in the future.

----
BTW, I'm not a fan of the essentially redundant `=` here, as direct- and copy-list-initialization are semantically same when performing aggregate initialization. But it seems that LLVM Coding Standards still [wants `=`](https://llvm.org/docs/CodingStandards.html#do-not-use-braced-initializer-lists-to-call-a-constructor).

https://github.com/llvm/llvm-project/pull/219474


More information about the libcxx-commits mailing list