AIX I/O failures
Gabriel Dos Reis
gdr@codesourcery.com
Thu Jan 25 13:53:00 GMT 2001
Mark Mitchell <mark@codesourcery.com> writes:
| >>>>> "Gabriel" == Gabriel Dos Reis <gdr@codesourcery.com> writes:
|
| Gabriel> This is really ugly because, on one hand cin is seen with
| Gabriel> the right type and on the other hand as array[] at the
| Gabriel> code level -- I wouldn't to debug such a mess.
|
| It's hard enough to debug cin as it is!
|
| Seriously, it's not a big deal -- you just cast &cin to an istream*,
| and then deal with that.
|
| Gabriel> extern istream& cin; // can a conforming program
| Gabriel> detect?
|
| Good question, and clever idea. But, I don't think there's a need to
| take the risk.
No conforming program can detect it. 'std::cin' as specified acts
like a reference.
-- Gaby
CodeSourcery, LLC http://www.codesourcery.com
More information about the Libstdc++
mailing list