This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Using C++ in GCC is OK


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

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]