Add std::isnan polyfill, fixing compilation under Embarcadero

Fixes #1438
This commit is contained in:
Martin Hořeňovský committed 2018-11-17 20:52:18 +01:00
1 parent a9d5b7193d
commit c6a89f14c2
6 files changed
+62 -2

No files matched your search

+2 -1
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";
}