This is the mail archive of the
mailing list for the GCC project.
Re: [v3] libstdc++/6518
On Thu, May 23, 2002 at 06:54:18PM +0200, Paolo Carlini wrote:
> But now: what to do about that? I mean, please excuse my naivete: how to
> tell a null terminated zero length string from a null pointer?!? I'm not
> able to do that. Perhaps you are implying that, since we are not able to
> do that, we must give up trying to diagnose the situation and therefore
> simply never set the badbit?
I believe that libstdc++ must find a way to tell the difference. It
may be difficult there, but the alternative is for every client of
libstdc++ to do it instead.