Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-07 17:30:19


"Peter Dimov" <pdimov_at_[hidden]> writes:

> Currently I use a conservative scan that assumes that shared_ptr instances
> have a layout of
>
> T * px;
> counted_base * pi;
> int id;

It's easy enough to enforce that by inheriting from a POD
struct. Don't know about the next part, though:

> with pointers being aligned on a DWORD boundary.

-- 
                       David Abrahams
   dave_at_[hidden] * http://www.boost-consulting.com
Boost support, enhancements, training, and commercial distribution

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk