Boost logo

Boost :

From: Victor A. Wagner Jr. (vawjr_at_[hidden])
Date: 2004-05-19 22:43:05

At Saturday 2004-05-15 16:35, you wrote:
>----- Original Message -----
>From: "Victor A. Wagner Jr." <vawjr_at_[hidden]>
>To: <boost_at_[hidden]>
>Sent: Saturday, May 15, 2004 9:10 AM
>Subject: Re: [boost] Ranged type mini-library submission
> > what is >> expected to do if the number input it "out of range"?
> > can we, for example, write cin >> month; (see below for definition of
>I am of the loose opinion that we shouldn't worry around with input/output
>operators for the range type. I am flexible on this though.

Obviously,I wouldn't have asked if I didn't think it were important. IMO
the C founders were so dead set against strong typing that they ignored
(and taught almost an entire generation of programmers) to ignore the
concept. So now we have a language in which I cannot reasonably ensure
mathematical limits on the range of numbers I need to play with.

I guess what I'm asking is:

if you cannot input or output it, what good is it?

> > should this be using numeric_limits<T>::epsilon() (instead of DBL_EPSILON)
> > and would that even work for numbers larger than 2.0?
>Good point, I am working on fixing that.
>Christopher Diggins
>Unsubscribe & other changes:

Victor A. Wagner Jr.
The five most dangerous words in the English language:
               "There oughta be a law"

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