Laurynas Biveinis <laurynas.bivei...@gmail.com> writes:

> 2010/6/2 Ian Lance Taylor <i...@google.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.

Ian

Reply via email to