restore from disk crash

[SVN r18353]
This commit is contained in:
Dave Abrahams
2003-05-08 02:19:10 +00:00
parent 640f633395
commit a81a1ea30f

View File

@ -103,6 +103,15 @@ istream& getline(istream& is, std::string& s)
return is;
}
#endif
#if defined(__GNUC__) && (__GNUC__ == 3)
istream& getline(istream& is, std::string& s)
{
std::getline(is, s);
if(s.size() && (s[s.size() -1] == '\r'))
s.erase(s.size() - 1);
return is;
}
#endif
int main(int argc, char**argv)
@ -364,3 +373,4 @@ int main(int argc, char**argv)