AIX I/O failures

Mark Mitchell mark@codesourcery.com
Thu Jan 25 13:05:00 GMT 2001


>>>>> "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.  C++ is too tricky -- I'd have to think real hard to
convince myself one way or the other....

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


More information about the Libstdc++ mailing list