From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id YT6MJdALq2pu1xMAWB0awg (envelope-from ) for ; Wed, 16 Sep 2026 17:36:16 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=SMJGQrv5; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 950B81E06B; Wed, 16 Sep 2026 17:36:16 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id CAB121E051 for ; Wed, 16 Sep 2026 17:36:14 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6D76A4BA79A5 for ; Wed, 16 Sep 2026 21:36:13 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D76A4BA79A5 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=SMJGQrv5 Received: from omta038.useast.a.cloudfilter.net (omta038.useast.a.cloudfilter.net [44.202.169.37]) by sourceware.org (Postfix) with ESMTPS id 701BE4BA23F1 for ; Wed, 16 Sep 2026 21:35:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 701BE4BA23F1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 701BE4BA23F1 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.37 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789594547; cv=none; b=ExrooIa+AwdUmHuIYvEm1koCd0jynP1D/D0Bd2ndQBRYZGCCfAQfGgRDhYC1YlDezTw2Xc9aR7U3aG1xw0FHR0Y1hiRLFVPFpTPGV/osK+SgSG9vpBR1MzPe7yx9YPGe1HVlsWeflf2jSOx7Y0hW2F7H0Nnf4ARJPUalPVqyqzM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1789594547; c=relaxed/simple; bh=OW596rjUw/1f2BcKMbofeJ5004nB/X3OBYIQbplblK8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=uYhuU/Zpqp1uIRGZufxmNg+V8aRYZbsQy+2Pf6XsMLXkFbldkGrzJGbKuAkF3gMvqirJnxF3WhJVHHNe7aqtd5zE6C9q7oXHlPsthZZLxFldigc7X1hehKXHh4LjW+db6QuB2/+E8oOGyHoQs7n8SVNOGK1PusOy8gkwph4d6qU= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=SMJGQrv5 reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 701BE4BA23F1 Received: from eig-obgw-5001b.ext.cloudfilter.net ([10.0.29.181]) by cmsmtp with ESMTPS id 6twZxe1JtJFmF6xIAxyDAm; Wed, 16 Sep 2026 21:35:46 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id 6xI9xA3qSX1zQ6xIAxaxx5; Wed, 16 Sep 2026 21:35:46 +0000 X-Authority-Analysis: v=2.4 cv=PP4P+eqC c=1 sm=1 tr=0 ts=6aab0bb2 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=VdqzKS8jKosA:10 a=ItBw4LHWJt0A:10 a=7CQSdrXTAAAA:8 a=2CyGSk3iLRdz3lO8rl0A:9 a=zZCYzV9kfG8A:10 a=a-qgeE7W1pNrGK8U0ZQC:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Unsubscribe-Post: List-Subscribe:List-Post:List-Owner:List-Archive; bh=W2PrUwnrRnL5NXDGEKlO0QZlG3Ifr9pl+S02uttgNJ4=; b=SMJGQrv5hVCw3v/HR57FuS1OyU hhjFbrEfQcrdMaiJkbdMBgShXdyT8es0Proam5rFu1LjTeHCEQoFR5r9iokjNIIFyTAoO2BR6u3CX xMdm3cvpTSVyqoGr4nTEiPXCO; Received: from 75-166-229-74.hlrn.qwest.net ([75.166.229.74]:60312 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.100) (envelope-from ) id 1x6xI9-00000000fAv-1j6L; Wed, 16 Sep 2026 15:35:45 -0600 From: Tom Tromey To: Matthieu Longo Cc: Andrew Burgess , gdb-patches@sourceware.org, Simon Marchi , Thiago Jung Bauermann , Luis Machado , Luis Machado , Christina Joos , Kevin Buettner Subject: Re: [PATCH v2 2/6] gdb support: add gdb::ranges::replace algorithm In-Reply-To: <206bab2e-27b4-4a59-8b11-f4a9a22c3128@arm.com> (Matthieu Longo's message of "Wed, 16 Sep 2026 17:03:40 +0100") References: <20260825100912.514232-1-matthieu.longo@arm.com> <20260825100912.514232-3-matthieu.longo@arm.com> <87ik4de550.fsf@redhat.com> <206bab2e-27b4-4a59-8b11-f4a9a22c3128@arm.com> X-Attribution: Tom Date: Wed, 16 Sep 2026 15:35:43 -0600 Message-ID: <87ld906frk.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.229.74 X-Source-L: No X-Exim-ID: 1x6xI9-00000000fAv-1j6L X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-229-74.hlrn.qwest.net (prentzel) [75.166.229.74]:60312 X-Source-Auth: tom+tromey.com X-Email-Count: 3 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfDExeTpELaFAAtCBxev8pf6qVxLJQm6BzDUIddpulJEvfVCKHtDSAnYVnVl2forwpNKWS7xNqVjFjZVV5n5n52td9NGodWzqAW5gJGJ8f551x/8XLIr8 hgQdGCcqO0FNV9gjwICH0YxzlbTZanucaH53a++A384i5EtEtTc6funpKbifFCAT3ttqXzvR8QjqO0wLx7mCxHSqjeQS4EHGRAs= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Matthieu" == Matthieu Longo writes: Matthieu> #if __cplusplus >= 202002L Matthieu> #error "replace the helpers below by the std::ranges::* equivalent." Matthieu> #endif Matthieu> in the file so that we don't forget about this and get rid of Matthieu> it once GDB migrates to C++20. Is this ok ? Or to avoid ? Probably avoid. One thing we've done elsewhere is fall back to the std:: variant, via aliases, if it's available. You can also file a bug for this and have it block the C++20 meta-bug. Tom