From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id D1EB1384F01A for ; Fri, 26 Aug 2022 20:05:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org D1EB1384F01A Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1661544350; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=5BA+Ne90WoFA2w7biC2JWDz2ofD4PQ2vfNrtDCzVdow=; b=Tdu6VgeeRXajaa6EHKSXbV26Tg7xIvfcdSnXOacY26qWAAUWeAWvbi0D6ZuJJsouAIN5X7 esxyj1m2E4hcCbnmTM63vWJ+9vd1WIhTZoMmPAD1NxIoAOI4n9EuHqvFZ5bX7VJ9JkDjdg nRN6QhtJ9G0fG2mrQj5+TalOG6F5sFs= Received: from mail-qt1-f199.google.com (mail-qt1-f199.google.com [209.85.160.199]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-562-u8sDd04RNcyvl0Vy443vTA-1; Fri, 26 Aug 2022 16:05:49 -0400 X-MC-Unique: u8sDd04RNcyvl0Vy443vTA-1 Received: by mail-qt1-f199.google.com with SMTP id v13-20020a05622a188d00b00343794bd1daso2023862qtc.23 for ; Fri, 26 Aug 2022 13:05:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=5BA+Ne90WoFA2w7biC2JWDz2ofD4PQ2vfNrtDCzVdow=; b=YB540RkeZ+HCXqONVHA8/xK7G8O2WhnhkY6eTtaJ0IhqXQkUZqYUjsrymNYPMhM5Bn nqVg/Ze2B8D1penUQ8hEESKhwFe0KFq3F4PlmeAAH0qspp/yN8MyjHqg1woypDhjtTy5 PxyXmsroHIFa46CP9c0IPzLbChhfGBK0/LSTUm2J1JlAfc4tzJfTkBkcaE2EQX8o8+p7 al4/zq1kx57+qprcE/lGKgfUqg2lk7m8QRBuLllnWj6hSPxqEm1YXA+XqdDxztNSrDFo r8yPWxf6yynIB28vWNYuc7fSt6iCIjP3WTXNBUDY+ZdoWxkrrt0tG0WEewYsDOSDDV6t VkZQ== X-Gm-Message-State: ACgBeo2P1/aBZv9sGHlAzynwhfrvN1d7eFRhLt2ktAZvc6rqqeHE3qJ8 mzs5KHacry9//xeT8S7jGIDLW9/UF4+YUxrhpuq4GN2jvJlB4YGstLvyhOtVM8Io1vI8bokKd2E OcjwtxDXb+Xt/6ThG0lQns0cawmPfZB8= X-Received: by 2002:a05:6214:f0e:b0:496:e627:2d26 with SMTP id gw14-20020a0562140f0e00b00496e6272d26mr1108224qvb.42.1661544348883; Fri, 26 Aug 2022 13:05:48 -0700 (PDT) X-Google-Smtp-Source: AA6agR7rs1a1gFH5E6T9WoF/KlejvnVwZinM2biP+MrqDnMRNOtAofPlke1y3SLr3HuYYbQpqKGbCamUZBckA1ODXCA= X-Received: by 2002:a05:6214:f0e:b0:496:e627:2d26 with SMTP id gw14-20020a0562140f0e00b00496e6272d26mr1108208qvb.42.1661544348712; Fri, 26 Aug 2022 13:05:48 -0700 (PDT) MIME-Version: 1.0 References: <20220823013500.1756466-1-ppalka@redhat.com> <20220823013500.1756466-3-ppalka@redhat.com> In-Reply-To: <20220823013500.1756466-3-ppalka@redhat.com> From: Jonathan Wakely Date: Fri, 26 Aug 2022 21:05:37 +0100 Message-ID: Subject: Re: [PATCH 3/3] libstdc++: Implement ranges::zip_view from P2321R2 To: Patrick Palka Cc: gcc-patches@gcc.gnu.org, libstdc++@gcc.gnu.org X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-6.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE,TXREP,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Tue, 23 Aug 2022 at 02:38, Patrick Palka via Libstdc++ wrote: > + template > + constexpr void > + __tuple_for_each(_Fp&& __f, _Tuple&& __tuple) > + { > + std::apply([&](_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