forked from boostorg/regex
restore from disk crash
[SVN r18353]
This commit is contained in:
@ -103,6 +103,15 @@ istream& getline(istream& is, std::string& s)
|
|||||||
return is;
|
return is;
|
||||||
}
|
}
|
||||||
#endif
|
#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)
|
int main(int argc, char**argv)
|
||||||
@ -364,3 +373,4 @@ int main(int argc, char**argv)
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user