Boost logo

Boost :

Subject: Re: [boost] [XInt] CoW/Move Timings
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2011-03-10 18:27:54


On Thu, 10 Mar 2011 07:37:40 -0800
"Jeffrey Lee Hellrung, Jr." <jhellrung_at_[hidden]> wrote:

>>> What I'm really finding troubling, though, is the deep copy
>>> performed at line 2119 in integer.hpp when using thread-safe
>>> integer_t's: [...]
>>
>> That's not what was intended for the original code. The
>> deep-copy-everything behavior is, as mentioned above, a hack that I
>> added in the last few days to provably and completely disable
>> copy-on-write.
>
> Correct me if I'm wrong, but this is the behavior of the thread-safe
> version of integer_t regardless of BOOST_XINT_USE_COW. So am I to
> infer from your comment that this line did *not* deep copy in the
> review version of the library?

It's not meant to. Whether it did or not, I can't say without closely
examining the code.

-- 
Chad Nelson
Oak Circle Software, Inc.
*
*
*



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