News for hackers. Stuff that matters.
Re:Tracking (C++) Shared Pointer Leaks by PaulDavisThe1st on Thursday October 03, 2024 @05:01PM (#41734957)
Back when we still used boost::*_ptr, we just hacked boost to do this. It required about a half dozen or so mods to the boost headers, and we could turn it on and off for different types, as needed.

Now that we use std::*_ptr it's not quite so trivial to do since we do not vendor the C++ stdlib, but for those of using open source, this is still possible.

I think it offers more flexibility than the approach described in TFA.

Re:Tracking (C++) Shared Pointer Leaks by TillE on Thursday October 03, 2024 @06:44PM (#41735883)
> for those of using open source

That should be just about everybody. MSVC STL was open sourced several years ago, so you'd have to be working on something pretty obscure/old.