[libcxx-commits] [libcxx] [libc++] LWG3382: NTTP for `pair` and `array` (PR #85811)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Fri Apr 26 07:56:46 PDT 2024


================
@@ -0,0 +1,80 @@
+//===----------------------------------------------------------------------===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+// UNSUPPORTED: c++03, c++11, c++14, c++17
+
+// <array>
+
+// array<T, N> is a structural type ([temp.param]) if T is a structural type.
----------------
ldionne wrote:

I don't understand what you're testing here. Isn't it sufficient to check for the NTTP behavior as far as the LWG issue is concerned? I think I'm just missing the obvious here, but if you can explain that would be great!

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


More information about the libcxx-commits mailing list