From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id H1vIOUmY9GrfYgIAWB0awg (envelope-from ) for ; Wed, 11 Nov 2026 11:31:05 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1794414665; bh=uEHnfXV7lmx2/LqV3/dyGPMjXJB+DjopxXVTeOcFk8I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=e4wi5bzBVSUjjr1hSQA9fjtrCHCKbs4yWCy520VHGAwx57vhzSY7jc6GMTtLhvbZG zrR5T8ad64n7A6ZggPEOv9BN22kL2fwZMnqERur9mHVfLSaCjz4LwZEwt3O7CYVyAw WDkqUa3YproF29oev/61UrEN4jP/yALtjRWzSI5s= Received: by simark.ca (Postfix, from userid 112) id D6C5C1E04F; Wed, 11 Nov 2026 11:31:05 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Xk3nG9Ka; dkim-atps=neutral Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::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 036851E04F for ; Wed, 11 Nov 2026 11:31:05 -0500 (EST) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BA6074B920A3 for ; Wed, 11 Nov 2026 16:31:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA6074B920A3 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Xk3nG9Ka Received: from simark.ca (simark.ca [158.69.221.121]) by sourceware.org (Postfix) with ESMTPS id 9FCBC4B920AA for ; Wed, 11 Nov 2026 16:30:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9FCBC4B920AA Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=simark.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=simark.ca ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9FCBC4B920AA Authentication-Results: sourceware.org; arc=none smtp.remote-ip=158.69.221.121 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794414639; cv=none; b=jZde/ewGmhludQHCULCue8y/uvRxPLSNk27MrJeCXRYoTGG+wCAVXHGvxA6+0OI//etqFoFZVq9l4Jbj3hEZXhHwLeKtmte5jtlGznzXA577WjOf2NsuqkS+dzGxP16EeSQAeGBO+o8cZFNWFJchArWQmkynthGhvy9EuGqVCdE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1794414639; c=relaxed/simple; bh=uEHnfXV7lmx2/LqV3/dyGPMjXJB+DjopxXVTeOcFk8I=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=ps8NzRo4wxUgJ+P8IwjKuP+uJh9kVNSRSKbaoPJWUJmSH9d3B4YVjdjPEUUBIUD9TkxABfa5rtxULD4YD8Ixocfui2zFySNzlGx0uKpb11otWeKrGvVt1pCg33Cfb91Q0hn+Xr+LJMLRhc+6NIYOGXj6s7gUc9xqxNK/lxUjNVM= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=simark.ca header.i=@simark.ca header.a=rsa-sha256 header.s=mail header.b=Xk3nG9Ka DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9FCBC4B920AA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=simark.ca; s=mail; t=1794414636; bh=uEHnfXV7lmx2/LqV3/dyGPMjXJB+DjopxXVTeOcFk8I=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=Xk3nG9KacBD/r2i3K0vqXxRWe4aSOwBy/6S9fHsD2VcYRBihuKPmEZLO7p9KM/DTA 9Xw3hx4DukDOFmYw27FdaqNoTbF7lhboVnLfIeA/2Uce1FSZsSioRCFGlTuMvGnTEP OSAIGc87/uGlv1KSuXA+qcNE+smxf1l2/BXB3PJQ= Received: by simark.ca (Postfix) id 6D87D1E04F; Wed, 11 Nov 2026 11:30:36 -0500 (EST) Message-ID: <8b0f0631-8216-4ce7-bf3d-c3b9df375f1b@simark.ca> Date: Wed, 11 Nov 2026 11:30:36 -0500 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 4/4] Remove operator== and operator!= from gdb::span To: Tom Tromey Cc: gdb-patches@sourceware.org References: <20261103-span-part-1-v1-0-133180dd43a5@adacore.com> <20261103-span-part-1-v1-4-133180dd43a5@adacore.com> <87446ec3-7bf2-4878-9ecb-e20b0705a19c@simark.ca> <87se17bd3w.fsf@tromey.com> <87o6bvbal4.fsf@tromey.com> Content-Language: en-US From: Simon Marchi In-Reply-To: <87o6bvbal4.fsf@tromey.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit 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 On 2026-11-11 11:24, Tom Tromey wrote: > Simon> While at it (as another patch), we could move > Simon> gdb::ranges::views::enumerate to ranges.h as well. Basically all the > Simon> functions that are a backport of . > >>> Someone else will have to do this, v2 of this series is already long. > > Simon> I don't mind doing it once the dust settles. > > The other thing I've been doing is changing these files to use the std:: > versions when __cplusplus allows for it. I think this should probably > be required for future shims. Or at least future c++20 shims, I'm less > sure about whether we want to commit to c++23 stuff yet, I don't even > know if gdb can be built in that mode. Note that we could also just use this: https://github.com/nonstd-lite/span-lite/ It does the "use std::span if available" thing by default, although you can change it via a macro. It's one header file to drop in gdbsupport, works well, I've used it (along with other "nonstd-lite" polyfills) in other projects. License is compatible. Simon