This is the mail archive of the
mailing list for the GCC project.
Re: Using C++ in GCC is OK
Laurynas Biveinis <firstname.lastname@example.org> writes:
> 2010/6/2 Ian Lance Taylor <email@example.com>:
>>> Ian, do you have an idea on how to avoid _M_impl dependency in
>>> gengtype or what else to do about it?
>>> Because we can trivially make gengtype mark the vector itself and mark
>>> whatever was put into vector, but not _M_impl.
>> I don't think I understand the question. Â_M_impl is a field of the
>> vector itself. ÂIt's not allocated separately.
> But the _M_impl._M_start is allocated separately.
But that's the part which we can scan in the code generated by
gengtype, by having it use std::vector methods in the generated loop.