|
|
|
|
|
by int_19h
1302 days ago
|
|
It's not hard, but when the idiomatically used containers aren't bounds-checked, most code out in the wild won't be, either. Worse yet if you are writing a library and have to interop with other code which will also use those idiomatic types. These days, C++ really should be compiled with bounds-checked indexing and iterators by default. Unfortunately, this is still not a scenario that is well-supported by tooling. |
|
https://learn.microsoft.com/en-us/cpp/standard-library/check...
The hard part is changing the mentality from whoever sits at the keyboard.