From: Casey Bodley Date: Fri, 31 Jul 2015 14:56:55 +0000 (-0400) Subject: c++11: disambiguate std::isnan X-Git-Tag: v9.1.0~419^2~3 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=f4d2032ce1ed7745ce2e85b01e05a3fd1852cbd1;p=ceph.git c++11: disambiguate std::isnan c++11's isnan() is a constexpr function, while c's is a macro Signed-off-by: Casey Bodley --- diff --git a/src/common/obj_bencher.cc b/src/common/obj_bencher.cc index a5a9ea60325c..e384511324ed 100644 --- a/src/common/obj_bencher.cc +++ b/src/common/obj_bencher.cc @@ -109,7 +109,7 @@ void *ObjBencher::status_printer(void *_bencher) { else bandwidth = 0; - if (!isnan(bandwidth) && bandwidth > 0) { + if (!std::isnan(bandwidth) && bandwidth > 0) { if (bandwidth > data.idata.max_bandwidth) data.idata.max_bandwidth = bandwidth; if (bandwidth < data.idata.min_bandwidth) @@ -124,7 +124,7 @@ void *ObjBencher::status_printer(void *_bencher) { else iops = 0; - if (!isnan(iops)) { + if (!std::isnan(iops)) { if (iops > data.idata.max_iops) data.idata.max_iops = iops; if (iops < data.idata.min_iops)