This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: libstdc++/5297: operator!() const incorrect for fstream class
- From: Uwe Seimet <us at orbacus dot com>
- To: paolo at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org,nobody at gcc dot gnu dot org, us at ooc dot de, gcc-gnats at gcc dot gnu dot org
- Date: Tue, 8 Jan 2002 15:31:25 +0100
- Subject: Re: libstdc++/5297: operator!() const incorrect for fstream class
- References: <20020107214637.14023.qmail@sources.redhat.com>
- Reply-to: us at ooc dot de
Hello,
> This has nothing to do with operator!().
> More simply, the open mode in|out|app is *not* allowed: see,
> f.i. Josuttis p. 632 or Langer/Kreft p. 43.
> Therefore, conformly to what prescribed by the standard, the
> open fails and !afile is in any case true.
Hmm. "Standard C++ IOStreams and Locales" by Langer and Kreft, Addison
Wesley says in|out|app is allowed. They use it in their example in 1.4.2.
What now? :)
Best regards, Uwe
--
----------------------------------------------------------------------------
Dr. Uwe Seimet mailto:us@orbacus.com
IONA - END 2 ANYWHERE http://www.orbacus.com