stdcxx-dev mailing list archives

> -----Original Message-----
> From: Martin Sebor [mailto:msebor@gmail.com] On Behalf Of Martin Sebor
> Sent: Wednesday, July 18, 2007 7:16 AM
> To: stdcxx-dev@incubator.apache.org
> Subject: Re: MyStreambuf class is incomplete
>
> Farid Zaripov wrote:
> > The throw_when_ mebmer of the MyStreambuf class
> (rw_streambuf.h line
> > 183) is
> > not initialized at the moment in class ctor's (only
> zero'ed), but used
> > in
> > MyStreambuf::test() (lines 472, 483). I suppose that this class
> > designed to initialize throw_when_ within test functions.
> But for now
> > the all iostream tests doesn't do it.
> > Maybe we just remove this mebmer at all? The patch is ready :)
>
> I'm not dead set against removing it but if it ain't broke...?
> Is it actually causing problems or are you just cleaning things up?
It causing problems because the tests are uses fail_when parameter to
set when
MyStreambuf should to throw, but MyStreambuf throws only if throw_when_
[inx] == callno.
So we should to apply my patch (remove throw_when_ and throw when
fail_when_ == callno,
or modify all tests to set throw_when_[] array.
Farid.