Contracts for C++ - Timur Doumler - Meeting C++ 2024 @MeetingCPP
Contracts for C++ - Timur Doumler - Meeting C++ 2024  @MeetingCPP
Uploaded January 2025 | Updated November 2026, 40 minutes ago
Contracts for C++ - Timur Doumler - Meeting C++ 2024
Slides: slides.meetingcpp.com
Survey: survey.meetingcpp.com

Design by Contract is a very effective approach for writing safer, more correct programs. It has been successfully implemented in programming languages like Eiffel and Ada. Attempts to add a Contracts facility to C++ have a long and storied history spanning two decades. Since the last attempt to standardise Contracts (for the C++20 Standard) has failed, SG21 — the Contracts Study Group on the C++ Standard Committee – has been working on a new design, the so-called Contracts MVP, which is now essentially feature-complete and on track to make it into the upcoming C++26 Standard.

In this talk, we present the current design of the Contracts MVP targeting C++26. We discuss preconditions, postconditions, assertions, contract-violation handling and much more. We consider how the Contracts MVP provides a superior replacement for custom assertion macros and, when used correctly, can significantly improve the safety and correctness of your code.
Contracts for C++ - Timur Doumler - Meeting C++ 2024A simple question? When to copy, when to move?Interview with Boguslaw Cyganek: Everthing about TensorsAsynchronous Programming with C++ - Interview with the authorsNot getting lost in translation - Daniela Engert - Meeting C++ 2024C++ Modules - Getting started today - Andreas Weis - Meeting C++ 2024Debunking C++ Myths - Interview with the authorsDoes my C++ Object Model Work with a GPU  and Can I Make It Safe - Erik Tomusk - Meeting C++ 2025Meeting C++ 2026 - Call for talksInstruction Level Parallelism and Software Performance - Ivica Bogosavljevic - Meeting C++ 2025Templates Made Easy with C++20 - Roth Michaels - Meeting C++ 2024Asynchronous Programming with C++ - book review with the authors
Meeting Cpp |

Contracts for C++ - Timur Doumler - Meeting C++ 2024

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER