llvm-project/libcxx/test/std/ranges
Joe Loser c3cd5f5b4f
[libc++][test] Fix invalid test for views::view_interface
The type `MoveOnlyForwardRange` violates the precondition stated in
`view.interface.general`. Specifically, the type passed to
`view_interface` shall model the `view` concept. In turn, this requires the
type to satisfy `movable` concept (and others), but this type
`MoveOnlyForwardRange` does not satisfy the `movable` concept.

Add a move assignment operator so that `MoveOnlyForwardRange` satisfies the
`movable` concept. While we're here, ensure the neighboring types that inherit
from `view_interface` also satisfy the `view` concept to avoid similar issues.

Fixes https://bugs.llvm.org/show_bug.cgi?id=50720

Reviewed By: Quuxplusone, Mordante, #libc

Differential Revision: https://reviews.llvm.org/D112631
2021-10-27 17:12:42 -04:00
..
range.access [libc++] [test] Change a lot of free begin/end pairs to members. NFCI. 2021-10-06 16:43:03 -04:00
range.adaptors [libc++] Add the std::views::reverse range adaptor 2021-10-18 10:38:31 -04:00
range.factories [libc++] [ranges] Uncomment operator<=> in transform and iota iterators. 2021-10-02 21:26:27 -04:00
range.req [libc++][NFC] Replace uses of stdr:: by just std::ranges:: 2021-09-02 13:02:12 -04:00
range.utility [libc++][test] Fix invalid test for views::view_interface 2021-10-27 17:12:42 -04:00