[MDEV-20462] add gsl::Expects(), gsl::Ensures() from CppCoreGuideliness Created: 2019-09-01 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Fix Version/s: | 10.4 |
| Type: | Task | Priority: | Major |
| Reporter: | Eugene Kosov (Inactive) | Assignee: | Sergei Golubchik |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | innodb | ||
| Description |
|
Those are elements of contract programming. gsl::Expects, gsl::Ensures directly express intent which makes code easier to read. https://en.wikipedia.org/wiki/Design_by_contract |