[libcxx-commits] [PATCH] D145981: [libc++] Assert that lengths fit in difference_type

David Benjamin via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Mar 15 20:07:28 PDT 2023


davidben added inline comments.


================
Comment at: libcxx/test/libcxx/strings/string.view/assert.ctor.length.pass.cpp:10-12
+// UNSUPPORTED: c++11, c++14
+
+// UNSUPPORTED: c++03
----------------
davidben wrote:
> Mordante wrote:
> > Why is this not supported in these language versions? We have enabled `string_view` in older language versions.
> I just copied that from `assert.ctor.pointer.pass.cpp`. :-) Removed.
Looks like that didn't work because the assertion is only allowed in constexpr starting C++14. I'll make this match the other assert and disable the test in C++11.


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

https://reviews.llvm.org/D145981



More information about the libcxx-commits mailing list