4 ms·
I think you missed the point of Rust. It's not about replacing new/delete with RAII (even though that's a good idea for sure). How does modern C++ help you with
by dthul 7y ago
I think you missed the point of Rust. It's not about replacing new/delete with RAII (even though that's a good idea for sure).
How does modern C++ help you with tracking whether a pointer/reference outlives the lifetime of the pointee? Not at all.
- pjmlp 7y agoBy using the lifetime static analysis recently introduced in clang tidy and Visual C++ 2019. It is still in the early stages and work is being done to make it a common feature across major compiler, while improving their capabilities.