Article View: comp.std.c++
Article #2476Re: a gotcha in getline(istream,string) -- why...?
From: Dietmar Kuehl
Date: Wed, 08 Nov 1995 22:33
Date: Wed, 08 Nov 1995 22:33
30 lines
1847 bytes
1847 bytes
Hi, Alex Martelli (martelli@cadlab.it) wrote: : Which unfortunately only applies to the overload of getline() that is : there described, the one taking an array of chars, not to others such : as the one taking a string -- Mr Kanze pointed out the discrepancy : between the "extracts no chars" and "appends no chars" wordings used : in the two places. Let's indeed hope it's just a minor editorial : oversight (perfectly understandable, as Mr Kanze says, given the huge : amount of work the editors have been doing!) that's going to be fixed : at some point... with the public comment period closed, is there any : way to submit such concerns to the committee...? It already has been fixed in the september working paper. Here is a quote from http://www.cygnus.com/misc/wp/sep95/lib-strings.html (lib.string.io) "If the function extracts no characters, it calls is.setstate(ios_base::failbit) which may throw ios_base::failure (_lib.iostate.flags_)." dk -- dietmar.kuehl@uni-konstanz.de http://www.informatik.uni-konstanz.de/~kuehl I am a realistic optimist - that's why I appear to be slightly pessimistic --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<47rap4$iod@eurybia.rz.uni-konstanz.de>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<martelli.815835104@cadlab>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: kuehl@uzwil.rz.uni-konstanz.de (Dietmar Kuehl) Newsgroups: comp.std.c++ Subject: Re: a gotcha in getline(istream,string) -- why...? Date: 08 Nov 1995 22:33:26 GMT Organization: Fakultdt f|r Mathematik und Informatik Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <47rap4$iod@eurybia.rz.uni-konstanz.de> References: <martelli.815835104@cadlab> Reply-To: Dietmar.Kuehl@uni-konstanz.de NNTP-Posting-Host: physics2.berkeley.edu