From a65628f56f28ddfbf432356fb1fc336c34783712 Mon Sep 17 00:00:00 2001 From: Par Winzell Date: Sun, 2 Dec 2018 19:00:42 -0800 Subject: [PATCH] Specify that we want std::isnan(). Depending on platform, multiple versions of isnan() can easily be floating around, causing compilation headaches. Luckily we can always rely on the standard library implementation. --- src/gltf/properties/NodeData.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gltf/properties/NodeData.cpp b/src/gltf/properties/NodeData.cpp index 8ee0f10..6310226 100644 --- a/src/gltf/properties/NodeData.cpp +++ b/src/gltf/properties/NodeData.cpp @@ -56,7 +56,7 @@ json NodeData::serialize() const // if any of the T/R/S have NaN components, just leave them out of the glTF auto maybeAdd = [&](std::string key, std::vector vec) -> void { - if (std::none_of(vec.begin(), vec.end(), [&](float n) { return isnan(n); })) { + if (std::none_of(vec.begin(), vec.end(), [&](float n) { return std::isnan(n); })) { result[key] = vec; } };