break;
}
- if (_M_gcount < __n)
+ if (traits_type::eq_int_type(__c, __eof))
__err |= ios_base::eofbit;
}
catch(...)
break;
}
- if (_M_gcount == __n)
- ;
- else if (traits_type::eq_int_type(__c, __eof))
+ if (traits_type::eq_int_type(__c, __eof))
__err |= ios_base::eofbit;
- else
+ else if (traits_type::eq_int_type(__c, __delim))
{
++_M_gcount;
__sb->sbumpc();