istream.tcc (getline(basic_string<>&)): Fix error in comment of the previous commit.

2003-11-22  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/istream.tcc (getline(basic_string<>&)):
        Fix error in comment of the previous commit.

From-SVN: r73836
This commit is contained in:
Paolo Carlini 2003-11-22 11:41:41 +00:00 committed by Paolo Carlini
parent 1a311979dd
commit a3b1b80447
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2003-11-22 Paolo Carlini <pcarlini@suse.de>
* include/bits/istream.tcc (getline(basic_string<>&)):
Fix error in comment of the previous commit.
2003-11-22 Paolo Carlini <pcarlini@suse.de>
PR libstdc++/12593

View File

@ -1193,7 +1193,7 @@ namespace std
// _GLIBCXX_RESOLVE_LIB_DEFECTS
// 91. Description of operator>> and getline() for string<>
// might cause endless loop
// 27.6.1.2.1 Common requirements.
// 27.6.1.3 paragraph 1.
// Turn this on without causing an ios::failure to be thrown.
__in.setstate(ios_base::badbit);
if ((__in.exceptions() & ios_base::badbit) != 0)