I would like to ask a question that follows this one which is pretty well answered by the define check if the compiler uses the standard. However this woks for C only. Is there a way to do the same in C++?
I do not wish to covert floating point types to text or use some pretty complex conversion functions. I just need the compiler check. If you know a list of such compatible compilers please post the link. I could not find it.
std::numeric_limits<double>::is_iec559()
to check if a particular floating point type is represented according to IEEE 754. Of course that says little about whether the compiler's floating point handling is 754 conformant, but it should give you a good hint. – Edyconstexpr
now but you're replying to a comment that predates C++11 – Centroid