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++/5297: operator!() const incorrect for fstream class


The following reply was made to PR libstdc++/5297; it has been noted by GNATS.

From: Carlo Wood <carlo@alinoe.com>
To: us@ooc.de
Cc: gcc-gnats@gcc.gnu.org
Subject: Re: libstdc++/5297: operator!() const incorrect for fstream class
Date: Mon, 7 Jan 2002 15:19:29 +0100

 On Mon, Jan 07, 2002 at 01:41:41PM -0000, us@ooc.de wrote:
 >     fstream afile(MYNAME, ios::in|ios::out|ios::app);
 >     assert(afile);
 
 Did you mean:  assert(!afile);  ?
 
 -- 
 Carlo Wood <carlo@alinoe.com>


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