This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: class iostream
- To: pedro at jigen dot iet dot unipi dot it
- Subject: Re: class iostream
- From: "Martin v. Loewis" <martin at loewis dot home dot cs dot tu-berlin dot de>
- Date: Wed, 1 Mar 2000 11:50:26 +0100
- CC: bug-gcc at gnu dot org
- References: <38BCECB7.5333A221@jigen.iet.unipi.it>
> 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