Re:11 year old unsoundness bugs found in Rust borrow checker
by AlotOfReading on Tuesday October 13, 2026 @01:19PM
(#50075308)
I'm only talking about modern C++, not C++98. C++'s footguns include smart pointers. For example, is the following code safe?
The answer depends on how foo() is implemented. You can't reason about it locally, and strictly speaking it's not possible to determine at compile time. Now, I should be declaring this gsl::not_null<std::unique_ptr<int>> to comply with the core guidelines, but I think we can agree that optional support libraries aren't relevant to this discussion.
[ Parent
| on HN ]
There are no comments on this comment yet.