From b98f7e8de2c35937c227236ddb986df4879edb5f Mon Sep 17 00:00:00 2001 From: Chris Dyer Date: Tue, 16 Oct 2012 01:42:55 -0400 Subject: c++11 compatibility --- training/mr_optimize_reduce.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'training/mr_optimize_reduce.cc') 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& 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])); } } -- cgit v1.2.3