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/cllh_observer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'training/cllh_observer.cc') diff --git a/training/cllh_observer.cc b/training/cllh_observer.cc index 58232769..4ec2fa65 100644 --- a/training/cllh_observer.cc +++ b/training/cllh_observer.cc @@ -45,7 +45,7 @@ void ConditionalLikelihoodObserver::NotifyAlignmentForest(const SentenceMetadata cerr << "DIFF. ERR! log_model_z < log_ref_z: " << cur_obj << " " << log_ref_z << endl; exit(1); } - assert(!isnan(log_ref_z)); + assert(!std::isnan(log_ref_z)); acc_obj += (cur_obj - log_ref_z); trg_words += smeta.GetReference().size(); } -- cgit v1.2.3