Actions
Improvements #14938
open
RM
RM
Add precondition and postcondition contracts
Improvements #14938:
Add precondition and postcondition contracts
Start date:
10/30/2026
Due date:
% Done:
0%
Estimated time:
Description
C++26 adds contracts. These allows to define conditions that must be true when a given function is called, as well as conditions that must be true when a given function returns.
We should add those preconditions and postconditions where it is relevant to do so. Since this is only available in c++26, those would be added using macros, defined in WDllDefs.h, similarly to how it was done for [[nodiscard]] when C++14 was still supported.
No data to display
Actions