This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: a problem about gcc-3.2?
- From: Benjamin Kosnik <bkoz at redhat dot com>
- To: gcc at gcc dot gnu dot org
- Cc: zsf00 at mails dot tsinghua dot edu dot cn
- Date: Tue, 10 Sep 2002 11:59:16 -0500
- Subject: Re: a problem about gcc-3.2?
- Organization: Red Hat / Chicago
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.