mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
comparing the result of is.get() with EOF is non-portable (fails on IRIX)
[SVN r8924]
This commit is contained in:
@ -137,7 +137,7 @@ istream& get_line(istream& is, nstring_type& s, char delim)
|
|||||||
{
|
{
|
||||||
char c = (char)is.get();
|
char c = (char)is.get();
|
||||||
s.erase(s.begin(), s.end());
|
s.erase(s.begin(), s.end());
|
||||||
while((c != delim) && (c != EOF))
|
while((c != delim) && is.good())
|
||||||
{
|
{
|
||||||
s.append(1, c);
|
s.append(1, c);
|
||||||
c = (char)is.get();
|
c = (char)is.get();
|
||||||
@ -176,7 +176,7 @@ istream& get_line(istream& is, string_type& s, char delim)
|
|||||||
{
|
{
|
||||||
char c = (char)is.get();
|
char c = (char)is.get();
|
||||||
s.erase(s.begin(), s.end());
|
s.erase(s.begin(), s.end());
|
||||||
while((c != delim) && (c != EOF))
|
while((c != delim) && is.good())
|
||||||
{
|
{
|
||||||
s.append(1, c);
|
s.append(1, c);
|
||||||
c = (char)is.get();
|
c = (char)is.get();
|
||||||
|
Reference in New Issue
Block a user