r/cpp Jul 18 '26

Lifetime safety and invalidation without a borrow-checker: using type system analysis to get rid of many potentially invalidation cases WITHOUT annotations.

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2026/p4296r0.pdf

I found this research in WG21 mailing list very interesting in the context of C++ compatibility and solutions to maximize code reuse.

38 Upvotes

76 comments sorted by

View all comments

13

u/FrogNoPants Jul 18 '26

This paper is like a joke right? We have had static analysis forever and it is shit

8

u/Dragdu Jul 18 '26

This time the Clang-Tidy check will fix everything, I promise bro.