Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-03-28 18:12:40
-----BEGIN PGP SIGNED MESSAGE-----
On 03/28/2010 05:47 PM, Scott McMurray wrote:
> On 28 March 2010 17:32, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
>> Which would defeat the primary purpose of the NaN value in the XInt
>> library, which is to have something to return instead of throwing an
>> exception when exceptions are blocked. :-)
> On 28 March 2010 17:47, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
>> No argument. But in the context of an integer library that will exactly
>> represent any value that it can find the memory for, and will throw an
>> exception if it can't get the memory it needs to represent a number
>> exactly, I can't see much need for a specific value to represent infinity.
> Do those two quotation imply that NaNs will also result from the
> "overflow" condition of running out of memory? If so, there's your
> reason for an Infinity special value.
Sorry, but no. n1692 specifies that it's supposed to throw an
std::overflow exception when it can't get the memory it needs to
represent a number.
Oak Circle Software, Inc.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (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