[libcxx-commits] [libcxx] [libc++] P2602R2 Poison Pills are Too Toxic (PR #74534)
Jakub Mazurkiewicz via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Feb 26 08:03:23 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&>);
----------------
JMazurkiewicz wrote:
I think this is good idea, I've added new three files `robust_against_ordinary_unqualified_lookup.compile.pass.cpp`.
Commit: https://github.com/llvm/llvm-project/pull/74534/commits/510a91a9fe1301da6a95f82328c47a9959a35ee9
https://github.com/llvm/llvm-project/pull/74534
More information about the libcxx-commits
mailing list