Article View: comp.std.c++
Article #2455Re: a gotcha in getline(istream,string) -- why...?
From: Alex Martelli
Date: Wed, 08 Nov 1995 17:56
Date: Wed, 08 Nov 1995 17:56
29 lines
1860 bytes
1860 bytes
dick@silicon.csci.csusb.edu (Dr. Richard Botting) writes: ... >While brousing the draft standard/working papers I found a >footnote (This is in the WWW/HTML version, lib-iostreams....) > 29) This implies an empty input line will not cause failbit to be set. 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...? Alex -- DISCLAIMER: these are TOTALLY personal opinions and viewpoints, NOT connected in any way with my employer, nor any other organization or individual! Email: martelli@cadlab.it Phone: +39 (51) 597313 CAD.LAB s.p.a., v. Ronzani 7/29, Casalecchio, Italia Fax: +39 (51) 597120 --- [ 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:
<martelli.815835104@cadlab>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattReferences:
<martelli.815502013@cadlab> <47oqkv$kct@news.csus.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: martelli@cadlab.it (Alex Martelli) Newsgroups: comp.std.c++ Subject: Re: a gotcha in getline(istream,string) -- why...? Date: 08 Nov 1995 17:56:15 GMT Organization: Cad.Lab Spa, Bologna, Italia Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <martelli.815835104@cadlab> References: <martelli.815502013@cadlab> <47oqkv$kct@news.csus.edu> NNTP-Posting-Host: physics2.berkeley.edu