4 ms·
It's still quite easy to have memory safety bugs in modern C++ though. For example, std::string_view is basically a pointer, as soon as it points to a string t
by FartyMcFarter 5y ago
It's still quite easy to have memory safety bugs in modern C++ though.
For example, std::string_view is basically a pointer, as soon as it points to a string that went out of scope you're in trouble if you use it again.
- pjmlp 5y agoAnother one is std::span, that contrary to Microsoft's gsl::span, WG21 decided it was a good idea not to do bounds checking.