Commit ea762cda authored by thomas.forbriger's avatar thomas.forbriger
Browse files

libtsxx [WP][FIX]: fix TimeSeriesCollection::are_consistent()

parent 38eba2d7
......@@ -66,7 +66,7 @@ namespace ts {
typedef ::sff::WID2 Theader;
typedef ts::TimeSeries<Tseries, Theader> Ttimeseries;
typedef ts::TimeSeries<typename Tseries::Tcoc, Theader> Tconsttimeseries;
typedef std::list<Ttimeseries> Tbase;
typedef std::vector<Ttimeseries> Tbase;
//!@}
/*! \brief Check consistency
......@@ -91,12 +91,13 @@ namespace ts {
bool retval=true;
if (this->size() > 1)
{
Tbase::const_iterator i_series=this->begin();
typename Tbase::const_iterator i_series=this->begin();
Theader refheader=i_series->header;
++i_series;
while ((i_series != this->end()) && retval)
{
retval=comparer(refheader; i_series->header);
retval=comparer(refheader, i_series->header);
++i_series;
}
}
return(retval);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment