Subject: Re: [boost] New Boost.XInt Library, request preliminary review
From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2010-03-29 11:14:42
On 29 March 2010 02:32, Chad Nelson <chad.thecomfychair_at_[hidden]> wrote:
> An interval consists of two points. Setting the lower point to
> Not-a-Number would work exactly the same as setting it to -infinity.
> Same with the higher point and +infinity. It wouldn't make any sense to
> set the lower point to +infinity, or the higher one to -infinity, so the
> sign doesn't convey any useful information in that case.
No, because -Inf < finite and finite < Inf will always return true,
whereas NaN < finite and finite < NaN will either throw an exception
or, if a quiet NaN acting like IEEE 754, return false.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk