This is the mail archive of the gcc@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: a problem about gcc-3.2?


See library defect 72.

73. is_open should be const

Section: 27.8.1 [lib.fstreams]  Status: NAD  Submitter: Matt Austern 
Date: 27 Aug 1998

Classes basic_ifstream, basic_ofstream, and basic_fstream all have a
member function is_open. It should be a const member function, since it
does nothing but call one of basic_filebuf's const member functions.

Proposed resolution:

Rationale:

Not a defect. This is a deliberate feature; const streams would be
meaningless.


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