Added regex iterator examples and docs, recovering from cvs repository crash...

[SVN r18361]
This commit is contained in:
John Maddock
2003-05-08 11:05:13 +00:00
parent 7321d18f08
commit 1c1ed068f4
19 changed files with 2173 additions and 21 deletions
+9
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)