libstdc++: Fix std::ranges::to errors
commit18d8a50a042a7faa78626373fdcfe3468c7ae864
authorJonathan Wakely <jwakely@redhat.com>
Wed, 29 Nov 2023 22:26:28 +0000 (29 22:26 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Thu, 30 Nov 2023 15:45:30 +0000 (30 15:45 +0000)
tree5be1eaba4602b22f6a40d8454a5392055b072b34
parentc8dafbef1adc6ba2d6377c3ef704669b50ddfb9d
libstdc++: Fix std::ranges::to errors

Fix some errors that Patrick noticed, and remove a #if 0 group that I
didn't mean to leave in the file.

libstdc++-v3/ChangeLog:

* include/std/ranges (__detail::__toable): Fix incorrect use of
_Range instead of _Cont.
(__detail::_ToClosure, __detail::_ToClosure2): Add missing
constexpr specifier on constructors.
* testsuite/std/ranges/conv/1.cc (_Cont, _Cont2, _Cont3): Remove
unnecessary begin() and end() members.
(test_constexpr): New function to check range adaptors are
usable in constant expressions.
libstdc++-v3/include/std/ranges
libstdc++-v3/testsuite/std/ranges/conv/1.cc