[PATCH 3/3] libstdc++: Implement ranges::zip_view from P2321R2
Jonathan Wakely
jwakely@redhat.com
Wed Aug 31 10:12:56 GMT 2022
On Fri, 26 Aug 2022 at 21:05, Jonathan Wakely wrote:
>
> On Tue, 23 Aug 2022 at 02:38, Patrick Palka via Libstdc++
> <libstdc++@gcc.gnu.org> wrote:
> > + template<typename _Fp, typename _Tuple>
> > + constexpr void
> > + __tuple_for_each(_Fp&& __f, _Tuple&& __tuple)
> > + {
> > + std::apply([&]<typename... _Ts>(_Ts&&... __elts) {
> > + (std::__invoke(__f, std::forward<_Ts>(__elts)), ...);
> > + }, std::forward<_Tuple>(__tuple));
>
>
> Nicole Mazzuca noticed a problem with the definition of
> tuple-for-each, which I've just added to the issues list:
> https://cplusplus.github.io/LWG/issue3755
Ignore this. The __tuple_for_each function is only ever called by the
library, so there's no way for something like Evil to be passed to it.
More information about the Libstdc++
mailing list