This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libstdc++/5297: operator!() const incorrect for fstream class


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]