[libc++] Post-commit review on D99928.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Tue, 6 Apr 2021 18:11:09 +0000 (14:11 -0400)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Tue, 6 Apr 2021 19:31:55 +0000 (15:31 -0400)
commitae318beb35517c70505114cab8d1fb286f99ab4b
treefaa9a7b56391d3e8564d93cba87c989604ec5dd5
parentfcc57558783b12de7a7d2cea809f72705ea849b4
[libc++] Post-commit review on D99928.

The "user-defined conversion by implicit constructor" codepath is already
handled by `B(int)`; we don't need to test `A(const A&)` a second time
via `DA` (nor the isomorphic case with `DB`).
We don't need `&` anywhere in this test.
Generally, `operator()` should be const; this test needn't be special.
(No functional change in test coverage.)
libcxx/test/std/concepts/concepts.callable/concept.invocable/invocable.compile.pass.cpp
libcxx/test/std/concepts/concepts.callable/concept.regularinvocable/regular_invocable.pass.cpp