Subject: Re: [boost] Proposed templated integer_sort
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2009-01-14 13:26:26
Phil Endecott wrote:
> It would be good if it were possible to automatically detect whether a
> floating point type is one for which the cast-to-integer trick works.
> It would be great if C++ defined some macro or similar that defined
> whether float and double were IEEE 754 or not. (Hmm, is there some
> sort of type_traits thing to do this?).
Are you thinking of std::numeric_limits<>::is_iec559?