intrusive_ptr: Why isn't a common base class provided?

Posted by Jon on Stack Overflow See other posts from Stack Overflow or by Jon
Published on 2010-05-25T08:47:41Z Indexed on 2010/05/25 8:51 UTC
Read the original article Hit count: 191

Filed under:
|

intrusive_ptr requires intrusive_ptr_add_ref and intrusive_ptr_release to be defined. Why isn't a base class provided which will do this? There is an example here: http://lists.boost.org/Archives/boost/2004/06/66957.php, but the poster says "I don't necessarily think this is a good idea". Why not?

© Stack Overflow or respective owner

Related posts about c++

Related posts about boost