13
0

'std::isnan' is not available in MSVC (at least, not VC8)

This commit is contained in:
John Emmas 2013-07-23 07:50:25 +01:00
parent 453ed61c4a
commit f9b99edc4a

View File

@ -16,6 +16,11 @@
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA * 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/ */
// 'std::isnan()' is not available in MSVC.
#ifndef COMPILER_MSVC
using std::isnan;
#endif
#include <cmath> #include <cmath>
#include <cassert> #include <cassert>
#include <utility> #include <utility>
@ -812,7 +817,7 @@ ControlList::modify (iterator iter, double when, double val)
(*iter)->when = when; (*iter)->when = when;
(*iter)->value = val; (*iter)->value = val;
if (std::isnan (val)) { if (isnan (val)) {
abort (); abort ();
} }