Re:We used C++20 to eliminate a class of runtime bugs
by maccard on Friday January 14, 2022 @11:55AM
(#29936901)
Agreed. That problem existed even before unique_ptr though; there are still some APIs that I use that hand you back pointers that you may or may not need to manage yourself. If you do need to, then unique_ptr + custom deleter is the way to go!
[ Parent
| on HN ]
There are no comments on this comment yet.