This is the mail archive of the gcc-prs@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++/8349: std::ios_base::out is not present in the fstream constructor taking a single argument.


Synopsis: std::ios_base::out is not present in the fstream constructor taking a single argument.

Responsible-Changed-From-To: unassigned->paolo
Responsible-Changed-By: paolo
Responsible-Changed-When: Fri Oct 25 14:01:46 2002
Responsible-Changed-Why:
    Analyzed.
State-Changed-From-To: open->closed
State-Changed-By: paolo
State-Changed-When: Fri Oct 25 14:01:46 2002
State-Changed-Why:
    In fact, as prescribed by 27.8.1.11, ios_base::out *is*
    present but together with ios_base::in, that is
    ios_base::in | ios_base::out is the default open mode of an
    fstream. However, the meaning of such an open mode is the
    same of the "r+" mode in C (27.8.1.3, Table 92), that is
    *file must exist*.
    To the contrary, the open mode of ofstream is ios_base::out,
    which creates if necessary (27.8.1.8).
    
    Thanks for your report, Paolo.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=8349


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