Follow-up Comment #3, bug #11713 (project wormux): Instead of using NAN which is conforming to C99, we can use numeric_limits<T>::quiet_NaN which is conforming to C++ :)
Here are some documentation: http://msdn.microsoft.com/en-us/library/0c18t6bw(VS.80).aspx http://publib.boulder.ibm.com/infocenter/comphelp/v9v111/index.jsp?topic=/com.ibm.xlcpp9.aix.doc/standlib/header_limits.htm http://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a01225.html Anyway, there is no equivalent to isnan in C++ (there will be one in C++0x) but isnan() is easy to implement bool isnan(double x) { return x != x; // yes, that sounds crazy :) } _______________________________________________________ Reply to this item at: <http://gna.org/bugs/?11713> _______________________________________________ Message posté via/par Gna! http://gna.org/ _______________________________________________ Wormux-gna mailing list [email protected] https://mail.gna.org/listinfo/wormux-gna
