Boost logo

Boost :

Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Chad Nelson (chad.thecomfychair_at_[hidden])
Date: 2010-03-28 18:12:40

Hash: SHA1

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.
- --
Chad Nelson
Oak Circle Software, Inc.
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla -


Boost list run by bdawes at, gregod at, cpdaniel at, john at