changeset 48:f46bf5e0fa42

* isnan -> std::isnan, likewise isinf
author cannam
date Thu, 25 Jan 2007 13:39:31 +0000
parents be8fdfe25693
children aa64a46320d4
files examples/SpectralCentroid.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/examples/SpectralCentroid.cpp	Fri Dec 08 17:39:32 2006 +0000
+++ b/examples/SpectralCentroid.cpp	Thu Jan 25 13:39:31 2007 +0000
@@ -157,13 +157,13 @@
 
 	Feature feature;
 	feature.hasTimestamp = false;
-        if (!isnan(centroidLog) && !isinf(centroidLog)) {
+        if (!std::isnan(centroidLog) && !std::isinf(centroidLog)) {
             feature.values.push_back(centroidLog);
         }
 	returnFeatures[0].push_back(feature);
 
         feature.values.clear();
-        if (!isnan(centroidLin) && !isinf(centroidLin)) {
+        if (!std::isnan(centroidLin) && !std::isinf(centroidLin)) {
             feature.values.push_back(centroidLin);
         }
 	returnFeatures[1].push_back(feature);