[libcxx-commits] [libcxx] [libc++] P2602R2 Poison Pills are Too Toxic (PR #74534)

via libcxx-commits libcxx-commits at lists.llvm.org
Mon Feb 26 05:07:03 PST 2024


================
@@ -186,6 +193,9 @@ template<class T> struct Holder { T t; };
 static_assert(std::is_invocable_v<IterMoveT, Holder<Incomplete>**>);
 static_assert(std::is_invocable_v<IterMoveT, Holder<Incomplete>**&>);
 
+// Ordinary unqualified lookup should not be performed.
+static_assert(!std::is_invocable_v<IterMoveT, ordinary_unqualified_lookup_helpers::StructWithGlobalIterMove&>);
----------------
huixie90 wrote:

not a big issue but usually for this kind of tests, we put them into a single file. e.g.
ranges_robust_against_*.pass.cpp

what do you think?

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


More information about the libcxx-commits mailing list