[libcxx-commits] [libcxx] [libc++] Resolve LWG4308, correct `iterator` availability for `optional<T&>` (PR #173948)

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Tue Dec 30 17:51:53 PST 2025


================
@@ -103,7 +133,7 @@ constexpr bool tests() {
 
   assert(!test_range_concept<int (&)()>());
   assert(!test_range_concept<int (&)[]>());
-  assert(!test_range_concept<int (&)[42]>());
+  assert(test_range_concept<int (&)[42]>());
----------------
frederick-vs-ja wrote:

Pre-existing: Many `assert` in this test file should be `static_assert`.

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


More information about the libcxx-commits mailing list