Add std::isnan polyfill, fixing compilation under Embarcadero

Fixes #1438
This commit is contained in:
Martin Hořeňovský 2018-11-17 20:52:18 +01:00
parent a9d5b7193d
commit c6a89f14c2
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
6 changed files with 62 additions and 2 deletions

View file

@ -20,6 +20,7 @@
#include "catch_tostring.h"
#include "catch_interfaces_config.h"
#include "catch_context.h"
#include "catch_polyfills.hpp"
#include <cmath>
#include <iomanip>
@ -68,7 +69,7 @@ namespace Detail {
template<typename T>
std::string fpToString( T value, int precision ) {
if (std::isnan(value)) {
if (Catch::isnan(value)) {
return "nan";
}