On 11/18/2012 07:06 PM, NightStrike wrote:
What's wrong with std::shared_ptr?
The pointer needs two words, and the per-object overhead for the reference counts etc. is four words, if I'm counting correctly.
(Other forms of reference counting have less overhead, of course, but you were asking about std::shared_ptr.)
-- Florian Weimer / Red Hat Product Security Team