
At Saturday 2004-05-15 16:35, you wrote:
----- Original Message ----- From: "Victor A. Wagner Jr." <vawjr@rudbek.com> To: <boost@lists.boost.org> 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 month)?
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 http://www.cdiggins.com http://www.heron-language.com
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
Victor A. Wagner Jr. http://rudbek.com The five most dangerous words in the English language: "There oughta be a law"