Subject: Re: [boost] [xint] Fourth release, requesting preliminary review again
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-06-10 10:39:02
-----BEGIN PGP SIGNED MESSAGE-----
On 06/10/2010 10:15 AM, Jeffrey Lee Hellrung, Jr. wrote:
>> I've tried making the algorithms independent by having them take
>> an array and other information, but they need the freedom to
>> reallocate as necessary (or I'd have to have two functions for each
>> operation). That means passing them the allocator as well, at the
>> very least. You end up
> Why do you need to pass the allocator? You cannot put the
> responsibility on the client code to provide a pointer to a free
> chunk of memory (whether heap/free store-allocated or
> stack-allocated) to write to?
I could, but I don't see the point. See below.
> The alternative, you say, is "I'd have to have two functions for each
> operations". Can you elaborate?
One to calculate how much memory would be needed, and (probably)
allocate it -- the calculation is different for every operation. The
other to do the actual calculation.
Oak Circle Software, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----END PGP SIGNATURE-----
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk