[libcxx-commits] [libcxx] [libcxx][test] std::array::iterator are not pointers by C++ standard (PR #70729)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Oct 30 14:49:05 PDT 2023


================
@@ -120,13 +120,13 @@ constexpr bool test() {
     {
       std::array<std::string, 10> a;
       auto ret = std::ranges::fill(a.begin(), a.end(), "long long string so no SSO");
-      assert(ret == a.data() + a.size());
+      assert(ret == a.begin() + a.size());
----------------
philnik777 wrote:

```suggestion
      assert(ret == a.end());
```

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


More information about the libcxx-commits mailing list