[Rivet-svn] rivet: Fix isnan to std::isnan to make gcc5.3 happy

Rivet Mercurial rivet at projects.hepforge.org
Tue Sep 13 01:30:01 BST 2016


details:   https://rivet.hepforge.org/hg/rivet/rev/11f854ae898d
branches:  release-2-5-x
changeset: 5462:11f854ae898d
user:      Holger Schulz <holger.schulz at durham.ac.uk>
date:      Tue Sep 13 01:20:57 2016 +0100
description:
Fix isnan to std::isnan to make gcc5.3 happy

diffs (20 lines):

--- a/src/Core/Run.cc	Mon Sep 12 17:31:08 2016 +0100
+++ b/src/Core/Run.cc	Tue Sep 13 01:20:57 2016 +0100
@@ -95,7 +95,7 @@
     _ah.init(*_evt);
 
     // Set cross-section from command line
-    if (!isnan(_xs)) {
+    if (!std::isnan(_xs)) {
       Log::getLog("Rivet.Run")
         << Log::DEBUG << "Setting user cross-section = " << _xs << " pb" << endl;
       _ah.setCrossSection(_xs);
@@ -143,7 +143,7 @@
     _istr.reset();
     _io.reset();
 
-    if (!isnan(_xs)) _ah.setCrossSection(_xs);
+    if (!std::isnan(_xs)) _ah.setCrossSection(_xs);
     _ah.finalize();
 
     return true;


More information about the Rivet-svn mailing list