Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2003-01-30 23:14:03


"David B. Held" <dheld_at_[hidden]> writes:

>> [...]
>> That is a very clean approach, and assuming it's OK to keep the
>> the sole copy of p in storage_policy, even efficient.
>
> I'm not sure anyone would use a pointer that kept multiple copies of
> p. Wouldn't that make it pretty fat?

Yeah, that was my point.

>> > [...]
>> > Ownership may have state, but but it need only be consulted
>> > when the resource could possibly be shared or moved. That's
>> > only possible if the smart_ptr c'tor has completed.
>>
>> I'm not sure that's true for intrusively-counted types.
>
> Ouch. This is a serious problem that requires some thought.

The issues just keep coming. Not a simple problem domain, and trying
to be the Borg means you have to consider *everything* ;-).

-- 
                       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