delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/26/23:41:27

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: J <not AT available309453 DOT com>
Newsgroups: comp.lang.c++,comp.os.msdos.djgpp
Subject: Reopening ifstream objects
Date: Thu, 27 Dec 2001 01:59:12 GMT
Organization: Fac. Wiskunde & Informatica, VU, Amsterdam
Lines: 5
Message-ID: <a0dv9g$ac6@cs.vu.nl>
NNTP-Posting-Host: kits.cs.vu.nl
User-Agent: tin/pre-1.4-19990927 ("Nine While Nine") (UNIX) (SunOS/5.8 (sun4u))
Cancel-Lock: sha1:z5sR0xR6avf8pehEhYawWq4vrH0=
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

If the construction of an ifstream object fails in the sense that its boolean
value has become false (e.g. because the supplied file doesn't exist), but
later on its member function open is successfully called, should the boolean
value of the object be true again? If it should, my compiler (DJGPP 3.02) has
a bug.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019