Boost logo

Boost :

Subject: Re: [boost] [xint] Boost.XInt formal review
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2011-03-10 08:49:10


On Wed, 09 Mar 2011 11:47:00 -0800
Steven Watanabe <watanabesj_at_[hidden]> wrote:

>>> I'm not sure I understand your argument. Are you saying that because
>>> there are no standard containers with a zero-memory-before-releasing
>>> option, that the library shouldn't provide one either?
>>>
>> Yes. Why integer_t should be an exception?
>
> Just a thought: Maybe the Allocator should handle this, since it's
> related to memory management?

I've been debating that since I read your message last night, and I
don't have an answer. It would make sense, but it would also make it
more difficult for someone who just wants to clear the memory when it's
released. I can see uses where that would be sufficient.

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