forked from boostorg/regex
Added regex iterator examples and docs, recovering from cvs repository crash...
[SVN r18361]
This commit is contained in:
1 parent
7321d18f08
commit
1c1ed068f4
19 files changed
+2173
-21
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user