This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: class iostream
- To: pedro <pedro at jigen dot iet dot unipi dot it>
- Subject: Re: class iostream
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 01 Mar 2000 15:05:52 -0300
- Cc: bug-gcc at gnu dot org
- References: <38BCECB7.5333A221@jigen.iet.unipi.it>
On Mar 1, 2000, pedro <pedro@jigen.iet.unipi.it> wrote:
> ifstream input;
> input.open("file.ini",ios::nocreate);
Yep, it was a bug that ifstream::open didn't implicitly add io::in to
the bit-mask. IIRC, this was fixed recently in the development tree.
> input.open("file.ini",ios::nocreate||io::in);
^^
here you should use `|', not `||'
--
Alexandre Oliva http://www.ic.unicamp.br/~oliva/ Enjoy Guaranį
Cygnus Solutions, a Red Hat company aoliva@{redhat, cygnus}.com
Free Software Developer and Evangelist CS PhD student at IC-Unicamp
oliva@{lsd.ic.unicamp.br, gnu.org} Write to mailing lists, not to me