3 ms·
Having used smart pointers extensively in C++ I'd much rather debug a malloc/free issue. Finding cylces is not trivial or quick.
by vvanders 8y ago
Having used smart pointers extensively in C++ I'd much rather debug a malloc/free issue. Finding cylces is not trivial or quick.
- winter_blue 8y agoYou’d rather debug malloc/free than try to find and eliminate shared_ptr cycles? You really think that’s easier? Besides, you shouldn’t be using shared_ptr much at all, and should try to use unique_ptr everywhere.
- vvanders 8y agoYup. Most of the debug CRTs contain fantastic malloc/free debugging and pointer overwrite tools. FWIW I don't consider unique_ptr a smart pointer, that's just RAII in action.