-1 cuts the trailing s if the time postfix is longer than 1 char.

This commit is contained in:
Mathieu Lacage
2008-04-11 12:23:19 -07:00
parent 5d91e8c2d2
commit f7691237f5

View File

@@ -230,7 +230,7 @@ std::istream& operator>> (std::istream& is, Time & time)
is.setstate (std::ios_base::failbit);
return is;
}
std::string trailer = value.substr(n, value.size ()-1-n);
std::string trailer = value.substr(n, value.size ()-n);
std::istringstream iss;
iss.str (value.substr(0, n));