This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: basic_file.cc
- To: Russell Davidson <russell at qed dot econ dot queensu dot ca>
- Subject: Re: basic_file.cc
- From: Benjamin Kosnik <bkoz at cygnus dot com>
- Date: Mon, 4 Oct 1999 15:34:21 -0700 (PDT)
- cc: libstdc++ at sourceware dot cygnus dot com
> I cam across what seemed an incompatibility between what the standard says
> and what basic_file.cc does. In section 27.8.1.3, it is specified that
> both ios::out and ios::out|ios::trunc should be equivalent to the stdio
> mode string "w". The manpage for fopen says that "w" means:
Yup. I think you are correct. It's a pitty though, because I don't really
see a way for somebody to use ostreams and open in a way that emulates
"nocreate" . . . oh well. Viva standards compliance!
This in:
1999-10-04 Russell Davidson <russell@qed.econ.queensu.ca>
* src/basic_file.cc: Fix open modes.
Thanks,
Benjamin