cin/cout as reference objects [Re: AIX I/O failures]

Mark Mitchell mark@codesourcery.com
Thu Jan 25 20:27:00 GMT 2001


>>>>> "Phil" == Phil Edwards <pedwards@disaster.jaj.com> writes:

    Phil> Are you referring to the synopsis in [27.3], or somewhere
    Phil> else?  I had looked at that section earlier in the
    Phil> discussion tonight...  While the synopsis shows cout as
    Phil> being declared as an ostream, I think we would be permitted
    Phil> to declare cout as a class derived from ostream, under the
    Phil> as-if rule.

Nope.  The as-if rule is going to fail for:

  typeid (cout) == typeid (ostrea)

if you do that.

    Phil> I thought one of the goals of 3.0 was to provide for this
    Phil> kind of compatibility?  A final change for all time, or at
    Phil> least for the next several years?

For the C++ ABI, yes.  For the library ABI, I think that's overly
ambitious.

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


More information about the Libstdc++ mailing list