From nobody Wed Jan 08 17:49:06 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4YSwQk6dw4z5krQ5 for ; Wed, 08 Jan 2025 17:49:18 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YSwQk6DFWz478G; Wed, 8 Jan 2025 17:49:18 +0000 (UTC) (envelope-from theraven@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736358558; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Uf12qHmKYNs7VFbysI2HtKztzW6Xav/z8cXjMADmfHU=; b=JXeMFfbpLkRpgganYr8WgQDFmr23hUDq5r5mg/XZHRygfdSyoTnednRpDLfH9fpKBksqQm zGRS89JneYg0vac2wCUbh1LPawiOrFCer213zpCVN4y2ZlE6XAWtt0/dznQxoZmGwmFXS4 FdKSEWe5fWSy9O6//IIqSAtn0qe+sdFPsN8qmMozAjmlw60Y7RyTbCLIHrv1p3y1Cxrklj puwzt3CipbkWQilhrbAP+jWs7U+Lmf5ejKUU8Sx3pKaHK+Eq/lt6WkPp/+ean1heMdHVX4 5p8RhA6bTrH9ZiA84wU5wrYXXFx5zg4pFbfF+ziXXp4QNNmfQF4Lfz3beHACkw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736358558; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Uf12qHmKYNs7VFbysI2HtKztzW6Xav/z8cXjMADmfHU=; b=Cud1aVC1mZY7PT15OKS92HWxkxLHQ2sAGo0CSdf3q8cElDcqAwk97oyPpGJjWIY/PlSGRt 9Wr0WLv24a9M+6yKPklRuP9e/rGE5A6rylzgFoCyW5vmYgAZGRkOdZNzW+/dxK3Du92Paw uV2FORvNxRlGnIgeey5UgQvaMavxVuocAzdZNbrvb1cxH2RAAjg7bG9wKPV425BAYEfdxx FrwwuE3lITxKUSf+9j2kKwwMocAPcyDm6m6zTgeivUPDeXMQAdNiBFjZb0fYrDxn5QwV9G wCCT+VJzFEBOehyvWOeqSxtoHF53dFsE+yNtm4t3TddzP2tcc8+sQUfshwUwGQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736358558; a=rsa-sha256; cv=none; b=IqBLTsPt0bzmbuY3WfvOQ3xzKkHSfntB6tx9+myv/ZMelNKhVIUHF/Mu1PcwuSYjcWDDEE /o1MbY+8m9mdtj4geeQgE9EYv8vidCYNwvhY8aKm7TODheAuu2Fx200dNYP6K2HXiaV9PL ipL/KFyYYLZS9gBi3OLmZBgCRy4cePcuwH8tfj2Q7pe/JWaCzTcYGCeyRQ+S3fe+KptKwL 5RzhQlnt0JTBjOsVKXj2vyuPC/JQV44jvKbNOHusHKmQMYzOhkavjHuccnEVdPjRSrgRKI RqRXChmFiy2KBey8hm+g/Fz7zZbhsHymnB5S9Z93THAbUswD0XJnB0Xr7STCJw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from smtp.theravensnest.org (smtp.theravensnest.org [45.77.103.195]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: theraven) by smtp.freebsd.org (Postfix) with ESMTPSA id 4YSwQk5RZRzrJT; Wed, 08 Jan 2025 17:49:18 +0000 (UTC) (envelope-from theraven@FreeBSD.org) Received: from smtpclient.apple (host81-141-222-158.range81-141.btcentralplus.com [81.141.222.158]) by smtp.theravensnest.org (Postfix) with ESMTPSA id AA5FAD8C7; Wed, 08 Jan 2025 17:49:17 +0000 (GMT) Content-Type: text/plain; charset=utf-8 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51.11.1\)) Subject: Re: What's the newest C++ standard that we can target? From: David Chisnall In-Reply-To: Date: Wed, 8 Jan 2025 17:49:06 +0000 Cc: FreeBSD CURRENT Content-Transfer-Encoding: quoted-printable Message-Id: <5F5098DD-075A-443F-8771-362DD2FF270D@FreeBSD.org> References: To: Alan Somers X-Mailer: Apple Mail (2.3776.700.51.11.1) On 8 Jan 2025, at 17:31, Alan Somers wrote: >=20 > What is the newest C++ standard that we can target in src, and be > confident that it will compile on all targets? Can we use C++20? C++20 is pretty well supported by clang 13 (I=E2=80=99m using C++20 = features on a project that needs to compile with clang 13). I believe = all STABLE branches and releases now include at least 17.x, which has = incomplete (but fairly good) C++23 support. David