[libcxx-commits] [libcxx] [libc++][array] Applied `[[nodiscard]]` (PR #168829)
Nikolas Klauser via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Nov 20 04:09:23 PST 2025
================
@@ -6,38 +6,42 @@
//
//===----------------------------------------------------------------------===//
-// <array>
// UNSUPPORTED: c++03, c++11, c++14, c++17
+// <array>
+
+// template <class T, size_t N>
+// constexpr array<remove_cv_t<T>, N> to_array(T (&a)[N]);
+// template <class T, size_t N>
+// constexpr array<remove_cv_t<T>, N> to_array(T (&&a)[N]);
+
#include <array>
-#include "test_macros.h"
#include "MoveOnly.h"
+#include "test_macros.h"
// expected-warning at array:* 0-1 {{suggest braces around initialization of subobject}}
-int main(int, char**) {
+void test() {
----------------
philnik777 wrote:
Can we do the refactoring in a separate patch?
https://github.com/llvm/llvm-project/pull/168829
More information about the libcxx-commits
mailing list