_M_fill initialization in basic_ios::init
Nathan Myers
ncm-nospam@cantrip.org
Fri Dec 7 06:35:00 GMT 2001
On Fri, Dec 07, 2001 at 11:55:57AM +0100, Paolo Carlini wrote:
> Thanks Nathan for your authoritative comments.
>
> > If the facet's not there, the library can't do what you asked
> > it to do. Probably it should set failbit in that case, instead
> > of crashing, though.
>
> So, I could work on this in the next days: trying to avoid as much as
> possible seg-faults in such cases (we have PR3983 too), setting failbit
> instead. Is this your final word? Are there any other options in addition
> to segfault/failbit ?
Well, when you setstate(failbit), it will throw if the client has
asked for that.
Finality is a matter for the committee. I will have to ask.
Nathan Myers
ncm at cantrip dot org
More information about the Libstdc++
mailing list