Boost logo

Boost Users :

From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-07-31 12:24:48


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 31 July 2008 11:53 am, Alexander wrote:
> There's several ways to allocate reference counter:
> 1. In separate object allocated separately - this is shared_ptr
> 2. In the same buffer with object but not as a part of object - this is
> shifted_ptr

I'm getting a little off-topic, but actually shared_ptr supports #2 as well if
you create it with make_shared/allocate_shared.

> 3. In the pointed object as a part of object - this is intrusive_ptr the
> way i'm trying to use it.
> The posted code is an implementation of what goes to the object.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIkedQ5vihyNWuA4URAlXyAKDi9NABQSHBevqHkIgo+Td2oNYsfgCg60P2
abs9DBlxWouVOTQ51oBuX8Q=
=9Hhi
-----END PGP SIGNATURE-----


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net