Skip to content

Commit 0d7dff6

Browse files
committed
Fix typo regarding stdckdint header
1 parent b9213f1 commit 0d7dff6

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

_posts/2026-04-05-exploring-c++26.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -452,9 +452,9 @@ If a path is never exercised, then a contract violation on that path will never
452452
be observed. Still, this is a step in the right direction as C++ continues to
453453
moves towards stronger correctness and safety expectations.
454454

455-
## `<stdchkint.h>`
455+
## `<stdckdint.h>`
456456

457-
C++26 adds `<stdchkint.h>` which includes checked integer arithmetic functions
457+
C++26 adds `<stdckdint.h>` which includes checked integer arithmetic functions
458458
like `ckd_add`, `ckd_sub`, and `ckd_mul`. These perform integer arithmetic and
459459
report whether the result can be represented in the destination type. These are
460460
perfect for areas where overflow bugs show up like computing buffer offsets,
@@ -465,7 +465,7 @@ compiler-specific builtins trying to do the same thing.
465465
### Compute total size of a packet
466466

467467
```cpp
468-
#include <stdchkint.h>
468+
#include <stdckdint.h>
469469
#include <cstddef>
470470

471471
// Compute the total size of a packet made up of a header,

0 commit comments

Comments
 (0)