[libc++] [ranges] Fix a missing auto(x) cast in ranges::data.
authorArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Tue, 11 Jan 2022 16:05:41 +0000 (11:05 -0500)
committerArthur O'Dwyer <arthur.j.odwyer@gmail.com>
Wed, 12 Jan 2022 23:16:15 +0000 (18:16 -0500)
commit4163f61f29f47d3e0d82cec2ba4cf8997d4b6820
treecd89102d0be822da05b00c225e8f5065c71cb757
parentb9499e14d24f5aefbf8e0d29f3e2dc780040772c
[libc++] [ranges] Fix a missing auto(x) cast in ranges::data.

Also remove some bogus `std::forward`s. My impression is that these
forwards were actually harmless, because `ranges::begin(FWD(t))` is
always identical to `ranges::begin(t)` (except when it's ill-formed,
and that can't happen in this case). However, they're also superfluous
and don't reflect the wording in the standard, so let's eliminate them.

Differential Revision: https://reviews.llvm.org/D117043
libcxx/include/__ranges/data.h
libcxx/test/std/ranges/range.access/data.pass.cpp
libcxx/test/std/ranges/range.req/range.refinements/contiguous_range.compile.pass.cpp