From: Paul A. Bristow (boost_at_[hidden])
Date: 2002-02-25 17:41:28
I agree that _Standardized_ forms of these are needed to make easy and
popular use of the
infinity and NaN.
Many systems offer something but are not well used because not portable
becuase not Standard.
Dr Paul A Bristow, hetp Chromatography
LA8 8AB UK
+44 1539 561830
Mobile +44 7714 33 02 04
> -----Original Message-----
> From: hubert_holin [mailto:Hubert.Holin_at_[hidden]]
> Sent: Thursday, February 21, 2002 10:08 AM
> To: boost_at_[hidden]
> Subject: [boost] Re: Most needed/desired features in C++
> Paris (U.E.), le 21/02/2002
> One feature which would be usefull is to have a
> (possibly also "is_positive_infinity" and "is_negative_infinity")
> member function for those types for which ::std::numeric_limits<type>
> ::has_infinity is true, and a "is_NaN" member function for those types
> for wich either ::std::numeric_limits<type>::has_quiet_NaN or
> ::std::numeric_limits<type>::has_signaling_NaN is true.
> This would be greatly convenient and cheap to implement (C
> now has macro for these, member funtions would be safer), and is a
> feature which is expected (and whose absence is thus cause for
> surprise). Strictly speaking, they might not be *necessary* as they can
> be emulated in user code *if* the comparison operators have been
> correctly implemented for NaNs and infinities (user code using
> comparisons with signaling NaN could be bothersome however).
> Hubert Holin
> I am not a mad scientist, I am a mad mathematician.
> --- In boost_at_y..., "Herb Sutter" <hsutter_at_a...> wrote:
> > Hi folks,
> > Pardon if this has already been discussed on the list, but I'd like your
> > feedback on this question: "What are the most needed or desired
> features in
> > C++ for modern library writing in general and Boost in particular?"
> > Two usual suspects:
> > - typedef templates
> > - typeof (with gcc semantics?)
> > What else should be on the list? For example, is there language
> support that
> > would assist type traits?
> > Thanks,
> > Herb
> Info: http://www.boost.org Send unsubscribe requests to:
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk