[libcxx-commits] [libcxx] [libc++][mdspan] Fix extents CTAD (PR #68737)

Damien L-G via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 10 13:46:00 PDT 2023


================
@@ -35,6 +41,7 @@ constexpr bool test() {
   test(std::extents(1, 2u), std::extents<std::size_t, D, D>(1, 2u));
   test(std::extents(1, 2u, 3, 4, 5, 6, 7, 8, 9),
        std::extents<std::size_t, D, D, D, D, D, D, D, D, D>(1, 2u, 3, 4, 5, 6, 7, 8, 9));
+  test(std::extents(S{1}, S{2}), std::extents<std::size_t, D, D>(1, 2u));
----------------
dalg24 wrote:

By the way why are we using the unsigned integer suffix literal here?

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


More information about the libcxx-commits mailing list