This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/16251] bogus default constructor for std::basic_iostream
- From: "ralfixx at gmx dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 7 Jul 2004 07:25:24 -0000
- Subject: [Bug libstdc++/16251] bogus default constructor for std::basic_iostream
- References: <20040628194641.16251.ralfixx@gmx.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From ralfixx at gmx dot de 2004-07-07 07:25 -------
(In reply to comment #2)
> these constructors should be protected, not public. I'll change this.
They are already protected (at least the one istream). In the meantime I read
some more about this topic, and it seems that the standard `allows' these
constructors, with the assumption that the derived class calls Init() later.
So maybe just add a comment to those CTORs that user code needs to call Init()
before doing anything with the stream?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16251