Boost logo

Boost :

From: Bronek Kozicki (brok_at_[hidden])
Date: 2004-04-24 14:11:18


Peter Dimov <pdimov_at_[hidden]> wrote:
>> why are we trying to built thread-safety into shared_ptr? There is
>> good saying that drove C++ to the point where we are right now: "do
>> not pay for what you do not use". If I'm willing to provide own
>> synchronization for shared pointers,
>
> You can't. Not unless you control the entire program and you can
> determine with certainty which shared_ptr instances share ownership
> at every particular moment.

It came to my head after sending this message. However I'm still unhappy
with extra heap allocation, as in my environment (MSVC) heap manager is
not very fast. There are 3rd party products like SmartHeap,
unforunatelly quite expensive :(

B.


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