4 ms·
"Not using shared_ptr a code smell?" Yes. It's part of the C++ standard. All rants against Dave Abrahams and Boost aside, not using the standard library to d
by timr 15y ago
"Not using shared_ptr a code smell?"
Yes. It's part of the C++ standard. All rants against Dave Abrahams and Boost aside, not using the standard library to do standard things is a code smell.
- zvrba 15y agoWhat "standard things"? shared_ptr is only one of many possible ways to keep track of object lifetimes. Rolling your own reference-counted smart pointer might be a code smell, but not choosing reference counting is far from that.