fixed eoFileMonitor bug when vector is empty

This commit is contained in:
LPTK 2013-07-17 16:26:47 +02:00
commit 8080d1b345

View file

@ -73,7 +73,8 @@ eoMonitor& eoFileMonitor::operator()(void)
eoMonitor& eoFileMonitor::operator()(std::ostream& os) eoMonitor& eoFileMonitor::operator()(std::ostream& os)
{ {
if (vec.size() > 0)
{
iterator it = vec.begin(); iterator it = vec.begin();
os << (*it)->getValue(); os << (*it)->getValue();
@ -82,6 +83,7 @@ eoMonitor& eoFileMonitor::operator()(std::ostream& os)
{ {
os << delim.c_str() << (*it)->getValue(); os << delim.c_str() << (*it)->getValue();
} }
}
os << std::endl; os << std::endl;