summaryrefslogtreecommitdiff
path: root/training/mr_optimize_reduce.cc
diff options
context:
space:
mode:
authorChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-10-16 01:42:55 -0400
committerChris Dyer <cdyer@cab.ark.cs.cmu.edu>2012-10-16 01:42:55 -0400
commitb98f7e8de2c35937c227236ddb986df4879edb5f (patch)
treee6ebc489593c6c9a7ff08ea75c9e12e6c2c9128c /training/mr_optimize_reduce.cc
parent51b5c16c9110999ac573bd3383d7eb0e3f10fc37 (diff)
c++11 compatibility
Diffstat (limited to 'training/mr_optimize_reduce.cc')
-rw-r--r--training/mr_optimize_reduce.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/training/mr_optimize_reduce.cc b/training/mr_optimize_reduce.cc
index 461e6b5f..d490192f 100644
--- a/training/mr_optimize_reduce.cc
+++ b/training/mr_optimize_reduce.cc
@@ -19,8 +19,8 @@ namespace po = boost::program_options;
void SanityCheck(const vector<double>& w) {
for (int i = 0; i < w.size(); ++i) {
- assert(!isnan(w[i]));
- assert(!isinf(w[i]));
+ assert(!std::isnan(w[i]));
+ assert(!std::isinf(w[i]));
}
}