home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!mcsun!uknet!siesoft!huw
- From: huw@siesoft.co.uk (Huw Roberts)
- Newsgroups: comp.lang.c++
- Subject: iostreams bug in BC?
- Summary: I have an iostream program which behaves differently in BC++ and cfront
- Keywords: whitespace; stream; borland; cfront; fail
- Message-ID: <1992Nov18.154925.5930@siesoft.co.uk>
- Date: 18 Nov 92 15:49:25 GMT
- Sender: news@siesoft.co.uk (Usenet News)
- Organization: Siemens Nixdorf Information Systems Ltd.
- Lines: 22
- X-Newsreader: Tin 1.1 PL4
-
- I have a problem with BC++ 3.1. I'm not sure what the correct behaviour is
- so I can't tell whether or not it's a bug. The program certainly behaves
- differently on cfront:
-
- ...
- istrstream fred (" 35 ");
- int x;
- fred >> x >> ws;
- if (fred.fail())
- cout << "You're kidding!`n";
-
- Borland produces the message, cfront does not.
-
- * Is this a bug in the Borland iostream library?
- * Does anyone have a reference to an ARM equivalent for the stram library -
- The C++ Programming Language (2nd Ed.) doesn't go into quite enough detail
- in this area.
-
- Huw
- --
- Huw Roberts (huw@siesoft.co.uk) Siemens Nixdorf Information Systems Ltd.
- +44 344 850982 Oldbury, Bracknell, Berks. RG12 4FZ England
-