Subject: Re: [boost] [xint] Design Question
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-06-18 10:34:11
-----BEGIN PGP SIGNED MESSAGE-----
On 06/16/2010 09:32 PM, Scott McMurray wrote:
>> Can anyone think of a potential reason for options C or D? Or a reason
>> to prefer option B? Or maybe come up with a different idea entirely?
> How about this combo of B, C, and D:
> - if !i, --i and i-- both throw exceptions.
> - a - b doesn't compile for non-fixed length
> - provide a separate absdiff(a, b) function
Working on this option now. After looking at it, removing the binary
operator- seems rather harsh... if you know that a number is larger than
what you're subtracting from it, it would just be irritating. But I'll
definitely add the absdiff function (maybe named "difference"?), then
the developer using the library can decide which to use for himself.
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