V3 PATCH: Insert `typename' and `ios_base::' whererequired

Mark Mitchell mark@codesourcery.com
Thu Feb 15 21:46:00 GMT 2001


>>>>> "Richard" == Richard Henderson <rth@redhat.com> writes:

    Richard> On Thu, Feb 15, 2001 at 09:47:53PM -0800, Mark Mitchell
    Richard> wrote:
    >> We do -- but when we do template instantiation we forget that
    >> __extension__ was specified.  So, in a template instantiation
    >> this doesn't work.  Fixing that is doable, but non-trivial.

    Richard> Oh, right.  Well, there's always alloca...

Nope, not in this case...  We have no way of knowing what CharT will
be, and it good be something that needs a constructor run, etc.

So, I think ugliness involving actual dynamic allocation will end up
being necessary -- unless master-of-library-arcana Benjamin can figure
out a way to avoid allocating the array at all...

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com



More information about the Libstdc++ mailing list