2 ms·
Spans and views make it easier, too. But C/C++ pointers don’t. You can add bounds checking to all C/C++ pointers and there are many projects that do that (CCur
by pizlonator 3y ago
Spans and views make it easier, too.
But C/C++ pointers don’t. You can add bounds checking to all C/C++ pointers and there are many projects that do that (CCured, SoftBound, CHERI, Fil-C, CheckedC, -fbounds-checked) but they all come at cost (new hardware, language changes, or reduced perf).