r/cpp • • May 20 '26

(Maybe) All The Contract Papers

https://a4z.noexcept.dev/blog/2026/05/20/The-Contract-Papers.html

Some people might say that the upcoming C++ contracts feature is one of the best researched topics in C++. I am not sure I agree, but a lot of work has gone into it.
This is a list of WG21 papers with the word "contract" in the title.
There might be some missing, and there may be a few papers on the list that are not directly related to 'the' Contracts work, but probably not many.

This should provide an overview of the work completed and the discussions that took place. And still take place. I hope this gives you an idea of how much work has been done on the topic.

17 Upvotes

9 comments sorted by

View all comments

Show parent comment

3

u/Minimonium May 22 '26

This library suffers from the same issue. It's just the nature of configurability, if you want to be able to disable instrumentation in the release build - there is nothing you can do.

1

u/_Noreturn May 23 '26

I define a macro that suits my debug config