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]
Other format: [Raw text]

[Bug libstdc++/16251] bogus default constructor for std::basic_iostream


------- 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


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