You could also use boost for this task:
#include <boost/math/special_functions/fpclassify.hpp> // isnan
if( boost::math::isnan( ... ) .... )
More Related Contents:
- how can i increase the speed of my C++ calculation [closed]
- Calling function in string.h file without object
- How to find out the date of the first day of week from the week number in C++
- New to programming: How to call a structure’s variables in a function and then update them? (C++) [closed]
- Compilation error: expected constructor, destructor, or type conversion before ‘;’ token [closed]
- How approximation search works
- Return array in a function
- Using generic std::function objects with member functions in one class
- C++ callback using class member
- How to make a .lib file when have a .dll file and a header file
- Representing 128-bit numbers in C++
- C++ return array from function [duplicate]
- Why doesn’t C++ support functions returning arrays?
- Should I use an exception specifier in C++?
- When to Overload the Comma Operator?
- Why can’t we pass arrays to function by value?
- Inline function linkage
- Returning a pointer of a local variable C++
- C++ inline member function in .cpp file
- std::bind a bound function
- C++: Argument Passing “passed by reference”
- Do class functions/variables have to be declared before being used?
- When is a function try block useful?
- Function in C++ returns by value or by reference?
- Confusion between C++ and OpenGL matrix order (row-major vs column-major)
- Function to mangle/demangle functions
- How much overhead is there in calling a function in C++?
- Best library for statistics in C++? [closed]
- is it possible to make function that will accept multiple data types for given argument?
- Get signatures of exported functions in a DLL