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 :-(
This commit is contained in:
parent
e07c504571
commit
14c3182200
2 changed files with 7 additions and 5 deletions
|
|
@ -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; i<vec.size(); i++) {
|
||||
for (unsigned i=1; i<this->vec.size(); i++) {
|
||||
os << " '" << getFileName().c_str() <<
|
||||
"' using 1:" << i+1 << " title '" << (vec[i])->longName() << "' with lines" ;
|
||||
if (i<vec.size()-1)
|
||||
"' using 1:" << i+1 << " title '" << (this->vec[i])->longName() << "' with lines" ;
|
||||
if (i<this->vec.size()-1)
|
||||
os << ", ";
|
||||
}
|
||||
os << '\n';
|
||||
|
|
|
|||
|
|
@ -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) :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue