Re: What's the newest C++ standard that we can target?

From: David Chisnall <theraven_at_FreeBSD.org>
Date: Wed, 08 Jan 2025 17:49:06 UTC
On 8 Jan 2025, at 17:31, Alan Somers <asomers@freebsd.org> wrote:
> 
> 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’m 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