Thread View: gnu.g++.lib.bug
1 messages
1 total messages
Started by Samir Mawa SOW
Mon, 09 Nov 1992 14:11
Bug in fstream->eof()?
Author: Samir Mawa SOW
Date: Mon, 09 Nov 1992 14:11
Date: Mon, 09 Nov 1992 14:11
18 lines
1141 bytes
1141 bytes
hi, I am a new user of your g++ lib (2.2) and I think that something is wrong with the eof method of the fstream-class. I attempt to use it in a search-program, which uses a ifstream object, but the returned value of eof() is always 0 even on an empty file. Before writing this mail, I have made several tests - I've replaced the eof() method by the fail() method and the program ran properly. - I've replaced the g++ library with the DEC c++ lib and the program ran properly So it seems that the bug comes from the eof() method. Is this a known bug? And if so, is there already a fix for it? Thanks for your cooperation. sincerly. Samir Sow
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads