"Trip report: February 2025 ISO C++ standards meeting (Hagenberg,
Austria" by Herb Sutter
https://herbsutter.com/2025/02/17/trip-report-february-2025-iso-c- standards-meeting-hagenberg-austria/
"This time, the committee adopted the next set of features for C++26,
and made significant progress on other features that are now expected to
be complete in time for C+26.
In addition to features already approved for C++26 at previous meetings,
at this meeting three major features made strong progress. In the core language:
P2900 Contracts was adopted for C++26
P2786 Trivial Relocatability was adopted for C++26
P1967 #embed was adopted for C++26
In the standard library:
P3471 Standard Library Hardening (which is also the first use of contracts) was adopted for C++26
P0447 std::hive was adopted for C++26
Other noteworthy progress:
P2996 Reflection is almost done its specification wording review aiming for C++26, and is expected to come up for vote for inclusion in
C++26 at the June meeting"
I guess that I will have to spend some time on figuring out what
Contracts is.
https://timur.audio/contracts_explained_in_5_mins
On 18.02.2025 09:13, Lynn McGuire wrote:
"Trip report: February 2025 ISO C++ standards meeting (Hagenberg,
Austria" by Herb Sutter
https://herbsutter.com/2025/02/17/trip-report-february-2025-iso-c-
standards-meeting-hagenberg-austria/
"This time, the committee adopted the next set of features for C++26,
and made significant progress on other features that are now expected
to be complete in time for C+26.
In addition to features already approved for C++26 at previous
meetings, at this meeting three major features made strong progress.
In the core language:
P2900 Contracts was adopted for C++26
P2786 Trivial Relocatability was adopted for C++26
P1967 #embed was adopted for C++26
In the standard library:
P3471 Standard Library Hardening (which is also the first use of
contracts) was adopted for C++26
P0447 std::hive was adopted for C++26
Other noteworthy progress:
P2996 Reflection is almost done its specification wording review
aiming for C++26, and is expected to come up for vote for inclusion in
C++26 at the June meeting"
I guess that I will have to spend some time on figuring out what
Contracts is.
https://timur.audio/contracts_explained_in_5_mins
Thanks for posting this, appreciated!
I looked at the contracts proposal briefly. The basic idea seems simple,
just add formalized pre-, post- and in-between condition checks to C++ functions. Alas, it appears the result provides a lot of really good
stuff for adding to the obscure C++ quizzes, and valuable contributions
to obfuscated C++ contests ;-)
In more detail, the contracts feature has subtle non-trivial
interactions with top-level const, lambda captures, coroutines, virtual functions, compiler optimizations, array decay, auto, etc. There are irregularities in irregularities. This is quite an achievement for a
feature whose main design principle is to have no effect at all (in
correct programs).
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 57:10:11 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,448 |
Posted today: | 1 |