This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: eb77.C
- To: Joern Rennecke <amylaar at cygnus dot co dot uk>
- Subject: Re: eb77.C
- From: Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Date: 17 Feb 1999 00:40:50 -0200
- Cc: robertlipe at usa dot net, egcs at cygnus dot com
- References: <199902170216.CAA09229@phal.cygnus.co.uk>
On Feb 17, 1999, Joern Rennecke <amylaar@cygnus.co.uk> wrote:
>> > Since the constructor for strstream is empty, this invokes undefined
>> > behaviour.
>> It is not empty, and it seems to me that it should not invoke
>> undefined behavior.
> Look at this code from egcs/libio/strstream.h and tell be what
> strstream::strstram () does:
> class strstream : public strstreambase, public iostream { public:
> strstream() { }
It calls strstreambase's default constructor, that initializes a
strstreambuf with the default initializer and initializes itself with
that streambuf. Seems correct to me.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva aoliva@{acm.org}
oliva@{dcc.unicamp.br,gnu.org,egcs.cygnus.com,samba.org}
Universidade Estadual de Campinas, SP, Brasil