Add gcc, clang, apple-clang support for C++26 #17092
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changelog: Feature: Add C++26 support for
gcc
,clang
, andapple-clang
.Changelog: Fix: Set C++20 flag to
{gnu}c++20
forgcc
>= 10 instead ofc++2a
untilgcc
12.Changelog: Fix: Set C++23 flag to
{gnu}c++23
forgcc
>= 11 instead ofc++2b
.Docs: conan-io/docs#3878
We're accepting the same risks gcc/clang do when supporting the c++26 flags out of the gate, let's hope it pans out 🤞
gcc
/clang
versions based on https://godbolt.org/z/K3KPqrhWWgcc
c++20/c++23 flag fix based on https://godbolt.org/z/bKh6djM7Eapple-clang
support based on:apple-clang
16:apple-clang
15:Closes #17073