
14 Jan
2009
14 Jan
'09
6:26 p.m.
AMDG 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? In Christ, Steven Watanabe