This is the mail archive of the gcc-bugs@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]

Re: class iostream


> If i leave the same code and the same files but i declare
> 
> fstream input;
> input.open("file.ini",ios::nocreate||io::in);

Thanks for your bug report. This is a known bug, and it will be
corrected in the next release. libstdc++ currently does not know that
the flags always should have ios::in for an ifstream. I hope you use
ios::nocreate | io::in, not what you wrote above. Also, you don't need
to use a full fstream - passing ios::in to the ifstream also works.

Regards,
Martin


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