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 CAD0C3850226 for ; Fri, 26 Aug 2022 20:05:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org CAD0C3850226 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-UiohRSlWNYSkpoDofa84Pg-1; Fri, 26 Aug 2022 16:05:49 -0400 X-MC-Unique: UiohRSlWNYSkpoDofa84Pg-1 Received: by mail-qt1-f199.google.com with SMTP id i19-20020ac85e53000000b00342f05b902cso2008911qtx.7 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=N8siDjBAjoeRc/+CYoJT437HPfRoTKhb5mywniVnc6I7MU6E9yw53wFicZpWoSsIsk Jc1Eeu+3FL8Hls1PB3/KDtQnjN6jVEX5aFQ50Xwhx02t0lIKXgDijZg2c7Q/mybWJqzX EKQhtPvsx/tC4bLwPNAC4LlGPlnIEy/QeXJIGEAMvE+0SHP0WI09mlSY1dUTB1lb8VJc eEIKOU/+xO/Bhi7kWw2o+tjV5Jmg0Nu/5bAxXpjjigYdHC+tEyyK4CarodQFmRdsDuxH u65P80EsgW6TA6hz6x5f3hfPpk4DNZFAheH+MKlocjbL/8sF09rqLkiRZb3lI2IzlKEV 6N5w== X-Gm-Message-State: ACgBeo2SpiWoujDmWjnvi/3B8FIaEeM25GKsJufQciJpcXWwdckpEmWW ib/qq8K143IRzlJb9DhLY+DTWH6oATGTgvpf48OrUucWnKzgmJ+kDPSs4SIUL2lyoSAbP0t+7/5 6LkWT1+oKQrVsUoLqRrBSWGqmROQDAtYq/A== X-Received: by 2002:a05:6214:f0e:b0:496:e627:2d26 with SMTP id gw14-20020a0562140f0e00b00496e6272d26mr1108219qvb.42.1661544348855; 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