r/cpp • • Feb 26 '26

The Joy of C++26 Contracts - Myths, Misconceptions & Defensive Programming - Herb Sutter

https://www.youtube.com/watch?v=oitYvDe4nps&t=1s
72 Upvotes

84 comments sorted by

View all comments

Show parent comment

17

u/c0r3ntin Feb 26 '26

What is your concern regarding implementation? There are 2 implementations of contracts - GCC and Clang. GCC 16 is going to ship with them, most likely.

3

u/pjmlp Feb 28 '26

As I understand him, that they actually behave the same way regardless which compiler is used, or how libraries get distributed and linked together.