|
Boost : |
Subject: Re: [boost] [Block Pointer] Review Request
From: Jeremy Maitin-Shepard (jeremy_at_[hidden])
Date: 2011-05-03 15:50:36
On 05/03/2011 12:28 PM, Phil Bouchard wrote:
> On 5/3/2011 7:47 AM, Phil Bouchard wrote:
>> On 5/3/2011 2:43 AM, Mathias Gaunard wrote:
>>>
>>> or if(p) rather sorry.
>>
>> I imagine this is more convenient, yes. I'll make the change in a bit.
>
> The problem is this only happens in the destructor and operator bool is
> usually called many times outside of the destructor. If I check for
> cyclicism inside operator bool then this would create unnecessary
> overhead for the calls outside of the destructor.
When you detect a cycle to be destroyed, would it be possible to zero
all of the relevant pointers before invoking any destructors?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk