The following code produces an error: std::numeric_limits<double>::epsilon() undefined error.
Using numeric_limits<double>::epsilon also produces this error.
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif // !_USE_MATH_DEFINES
#include <math.h>
#include <limits.h>
class plusCartesianPoly {
public:
static bool isClose(double a, double b)
{
if (fabs(a-b) <= std::numeric_limits::epsilon())
return true;
return(false);
}
};
std::numeric_limitsis defined in<limits>, not<limits.h>.*.hincludes for things fromstd.