This raises a further question: why are gcc containers preferred over stl ones.

Thanks, Andrés.

2016-05-03 12:02 GMT-03:00 Jakub Jelinek <ja...@redhat.com>:
> On Tue, May 03, 2016 at 08:59:11AM -0600, Jeff Law wrote:
>> On 05/03/2016 08:44 AM, Andres Tiraboschi wrote:
>> >Hi,
>> >Does anyone know if there is a good reason for not using stl
>> >containers in gcc sources?
>> >I'm asking because I didn't find any use of them in the code I read.
>> The GCC coding conventions allow the use of the standard library; but you
>> have to be careful WRT objects that are subject to garbage collection.
>
> And, if there is a GCC counterpart of a particular container, the GCC
> counterpart should be used instead of the stl one.
> E.g. vec, or hash_map etc.
>
>         Jakub

Reply via email to