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 3C3CD3858CDA for ; Wed, 31 Aug 2022 10:13:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3C3CD3858CDA 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=1661940790; 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=XOEVhZEJsgx1y+bi8CZzI72Bqvu0zEvQVRtl5B2FQqg=; b=Jk6tpI93GVfSHqPtt8MgE+lL9oAwzoy44ENe68db3eZ2aQ1JPKGlGK37fRXuOk/3y7GmNd b0miyFTmh2Bs8IZCrBaDcVl3IePtG//tEjszNjMRzr5cJO4/do9uIwrehx6DV39mZcPfg5 HX5zcmFXdkxsuM5fRCecBc3hMyIxhiY= Received: from mail-qt1-f198.google.com (mail-qt1-f198.google.com [209.85.160.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-606-SGJFav57PU2wbltHoxQ3Sw-1; Wed, 31 Aug 2022 06:13:08 -0400 X-MC-Unique: SGJFav57PU2wbltHoxQ3Sw-1 Received: by mail-qt1-f198.google.com with SMTP id e30-20020ac8011e000000b00342f61e67aeso10818466qtg.3 for ; Wed, 31 Aug 2022 03:13:07 -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=XOEVhZEJsgx1y+bi8CZzI72Bqvu0zEvQVRtl5B2FQqg=; b=GS/szLkebfZmRreVdSYhHk2s0GiCUZu8rO6+jTLJvdA9fZ9tL+HbJs2tV5gpIGGe94 FjfJy9ISF/bnKm8tlooCCHif8T6tiO6PsFNOqzgajsmq1LYdW1/TaqnG4Z35EDqy9luV x4fcJnk+hmDzIogvrtQENKcddNIL8xlPJMy1Fb5MpdpXERJJ1RZM7WBoPNFQsXYkvqhu G80+DgqkLhVT9s7N6ZDL1CNLP9g/GSB/9Kwh/2hLpBR7A7AIFlNMz9AWXXfkdWu8bbj8 HXoH9/PlUY8+dxkxdwhL/mI20syCKhXjGhAsQ45aX5MpS4IWJ89UgN9YFRBOYRB6Qpxt 9O6g== X-Gm-Message-State: ACgBeo0TB3fFwutLfrHbkM8ZtVhWpiVFxV3r9cpZ3m82/ZqBQ20MVJDf lYZqoH5aP3XxtUL+tZPGwUx0fKwnL3wAzL3yKOHRzYw2GCjwGqlCJQfobjZ7hRSeOegSgv3kC08 dW2eQULUvx/evhiT9Gg5eaovWirxzXk3pLg== X-Received: by 2002:a37:4452:0:b0:6bb:fb52:5c75 with SMTP id r79-20020a374452000000b006bbfb525c75mr15293937qka.638.1661940787555; Wed, 31 Aug 2022 03:13:07 -0700 (PDT) X-Google-Smtp-Source: AA6agR700wiHqgclv6d5oT1H+w/XLfNBYk4EfTkBhlf6MizYN1sU/n40wYs7XuR42gz727LhvEtbdl5QcK82bS87BcA= X-Received: by 2002:a37:4452:0:b0:6bb:fb52:5c75 with SMTP id r79-20020a374452000000b006bbfb525c75mr15293925qka.638.1661940787390; Wed, 31 Aug 2022 03:13:07 -0700 (PDT) MIME-Version: 1.0 References: <20220823013500.1756466-1-ppalka@redhat.com> <20220823013500.1756466-3-ppalka@redhat.com> In-Reply-To: From: Jonathan Wakely Date: Wed, 31 Aug 2022 11:12:56 +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=-5.4 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,URIBL_BLACK 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 Fri, 26 Aug 2022 at 21:05, Jonathan Wakely wrote: > > 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 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.