Unverified Commit 4d08eccd authored by Louis Dionne's avatar Louis Dionne Committed by GitHub
Browse files

[libc++] Implement P2538R1 "ADL-proof std::projected" (#65411)

Notice that because Holder<Incomplete> is _possible_ to complete, but
_unsafe_ to complete, that means that Holder<Incomplete>* is basically
not an iterator and it's not even safe to ask if
input_iterator<Holder<Incomplete>*> because that _will_ necessarily
complete the type. So it's totally expected that we still cannot safely
ask e.g.


static_assert(std::indirect_unary_predicate<bool(&)(Holder<Incomplete>&),
Holder<Incomplete>*>);

or even

static_assert(!std::indirect_unary_predicate<int, Holder<Incomplete>*>);

This was originally uploaded as https://reviews.llvm.org/D119029

 and I
picked it up here as part of the Github PR transition.

Co-authored-by: default avatarArthur O'Dwyer <arthur.j.odwyer@gmail.com>
parent 63327fa8
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment