[libcxx-commits] [libcxx] [libc++][ranges] add static_assert for ranges::to (PR #135802)
via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 21 04:03:32 PDT 2025
================
@@ -0,0 +1,72 @@
+//===----------------------------------------------------------------------===//
+//
+// 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, c++20
+
+// Test that the "mandates" requirements on the given class are checked using `static_assert`.
+#include <ranges>
+void ff() {}
+void test() {
----------------
Yuzhiy05 wrote:
ok,I have merged them
https://github.com/llvm/llvm-project/pull/135802
More information about the libcxx-commits
mailing list