From 14c3182200a9bd5fdff40e09c65fabd816c10a65 Mon Sep 17 00:00:00 2001 From: evomarc Date: Tue, 8 Nov 2005 11:34:12 +0000 Subject: [PATCH] Removed the "using eoMonitor::vec from eoGnuplot1DMonitor.h because it generated an internal compiler error with gcc4.0.0. Repalced all occurences of "vec" by "this->vec" in eoGnuplot1DMonitor.cpp so it is understood by the compiler :-( --- eo/src/utils/eoGnuplot1DMonitor.cpp | 8 ++++---- eo/src/utils/eoGnuplot1DMonitor.h | 4 +++- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/eo/src/utils/eoGnuplot1DMonitor.cpp b/eo/src/utils/eoGnuplot1DMonitor.cpp index f716c33c9..c0cff842c 100644 --- a/eo/src/utils/eoGnuplot1DMonitor.cpp +++ b/eo/src/utils/eoGnuplot1DMonitor.cpp @@ -59,17 +59,17 @@ eoMonitor& eoGnuplot1DMonitor::operator() (void) void eoGnuplot1DMonitor::FirstPlot() { - if (vec.size() < 2) + if (this->vec.size() < 2) { throw std::runtime_error("Must have some stats to plot!\n"); } #ifdef HAVE_GNUPLOT std::ostringstream os; os << "plot"; - for (unsigned i=1; ivec.size(); i++) { os << " '" << getFileName().c_str() << - "' using 1:" << i+1 << " title '" << (vec[i])->longName() << "' with lines" ; - if (ivec[i])->longName() << "' with lines" ; + if (ivec.size()-1) os << ", "; } os << '\n'; diff --git a/eo/src/utils/eoGnuplot1DMonitor.h b/eo/src/utils/eoGnuplot1DMonitor.h index 9547e0480..523e875c5 100644 --- a/eo/src/utils/eoGnuplot1DMonitor.h +++ b/eo/src/utils/eoGnuplot1DMonitor.h @@ -48,7 +48,9 @@ class eoGnuplot1DMonitor : public eoFileMonitor, public eoGnuplot { public: - using eoMonitor::vec; + // this "using" directive generates a compiler internal error in GCC 4.0.0 ... + // it's been removed, and the only call to vec was replaced by this->vec in eoGnuplot1DMonitor.cpp + // using eoMonitor::vec; /** Constructor */ eoGnuplot1DMonitor(std::string _filename, bool _top=false) :