Add std::isnan
polyfill, fixing compilation under Embarcadero
Fixes #1438
This commit is contained in:
parent
a9d5b7193d
commit
c6a89f14c2
6 changed files with 62 additions and 2 deletions
|
@ -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";
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue