I've been modifying other code in this app (not the function the uses the isnan). It compiled a few times. But then suddenly I started getting a compile error saying
error: 'isnan' was not declared in this scope
if (std::isnan(settingsData.Temperature))
But that didn't work. I then found in the RAW compiler output some cryptic help (wonder why this is not displayed normally) and so then included cmath
#include <cmath>
I also had to continue to prefix with the std namespace as shown earlier for this code to compile.
So, my question is, What happened all of a sudden? Why did I have to include cmath and prefix with the std namespace?
I'm also wondering why I didn't need an include (cmath or math) before. This code has been in production for a few months now, without any "math" include.
A similar error I have here: isnan over math.h had been integrated and only with the addition of the softAP example code runs the webIDE on this error:
You may need to post the actual error message.
Note messages are just additional infos for an error to help you get a better understanding why the error was raised.
Thank you for the clarification, ScruffR;
the error is this: error: âisnanâ was not declared in this scope
and solved with #include âmath.hâ // isnan() #define isnan