Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

It's not just the indexing you have to worry about, though. It's also out-of-bounds iterators. And while, yes, you can tell your implementation to emit checks for those as well, it's so slow in practice that nobody uses it in optimized release builds (and some implementations don't even support such use).


Sure. I agree. I was just arguing that it's good span doesn't have at(), I was not trying to say C++ is memory safe.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: