diff options
author | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-10-16 01:42:55 -0400 |
---|---|---|
committer | Chris Dyer <cdyer@cab.ark.cs.cmu.edu> | 2012-10-16 01:42:55 -0400 |
commit | 2e00c663cf271233610dc1633c7fb1d4a43cd214 (patch) | |
tree | effd075381b24f7d43fbb850d3b9385c4ca39034 /training/mr_optimize_reduce.cc | |
parent | 09a522afef40e514e741ddf5f9bbc61cfb2170e8 (diff) |
c++11 compatibility
Diffstat (limited to 'training/mr_optimize_reduce.cc')
-rw-r--r-- | training/mr_optimize_reduce.cc | 4 |
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])); } } |