From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id gP3RBTLJHmVimiUAWB0awg (envelope-from ) for ; Thu, 05 Oct 2023 10:33:22 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=fEU1KzwA; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 0B28E1E0D0; Thu, 5 Oct 2023 10:33:22 -0400 (EDT) Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 E6AAA1E0C2 for ; Thu, 5 Oct 2023 10:33:19 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 320553882ADA for ; Thu, 5 Oct 2023 14:33:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 320553882ADA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1696516399; bh=q8mmwWiUKjKcKw7yQT6dAcc8EvOrMz24hQ0SKz4dp1I=; h=Date:Subject:To:Cc:References:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=fEU1KzwAnb7pDoyXpgdhjjXjQM4rHPpR6QG43IFuHbe6OaULHeYSITjRb24T1dNae TnhN9LYykP5SkDwZTLoTqWBTIqnBWhvPLl2NwR3Qb86iD3eKg/NrToa8Q9oIji3Vj1 fCkL0gLuDTS6b7uMQf6O/SY1RF85J1MOLDmvDVY8= Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 47F473861932 for ; Thu, 5 Oct 2023 14:33:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 47F473861932 Received: from [172.16.0.192] (192-222-143-198.qc.cable.ebox.net [192.222.143.198]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPSA id 061C71E0C2; Thu, 5 Oct 2023 10:32:58 -0400 (EDT) Message-ID: Date: Thu, 5 Oct 2023 10:32:58 -0400 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH RFC] Require c++17 compiler Content-Language: fr To: Lancelot SIX , Andrew Burgess , Tom de Vries Cc: gdb-patches@sourceware.org References: <20231005065449.32643-1-tdevries@suse.de> <20231005103354.5loeki67slszfrcy@hpe6u-23> <87h6n5tfu9.fsf@redhat.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org 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: , From: Simon Marchi via Gdb-patches Reply-To: Simon Marchi Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On 10/5/23 10:26, Lancelot SIX via Gdb-patches wrote: > If you take something like gdb::optional for example, it is used quite > extensively in the codebase, and I don't think it would be easy to > remove the it in favor of the standard C++ version any time soon. We > can have gdb::optional be an alias to std::optional, but the codebase > will still continue to use "gdb::optional" independently of how this > is implemented. Wouldn't it be a simple find and replace, gdb::optional to std::optional? Conveniently, it's the same number of characters, so it doesn't even affect line-wrapping. Simon