[cxx-conversion] various hash tables, part 1/2

Lawrence Crowl crowl@googlers.com
Mon Dec 3 19:50:00 GMT 2012


On 12/3/12, Diego Novillo <dnovillo@google.com> wrote:
> On 2012-12-03 14:24 , Lawrence Crowl wrote:
>>>> -static int
>>>> -htab_cu_eq (const void *of1, const void *of2)
>>>> +inline bool
>>>> +cu_hash_table_entry_hasher::equal (const value_type *entry1,
>>>> +                                  const compare_type *entry2)
>>>
>>> No static?
>>
>> The in-class declaration has the static keyword.  (It's still a
>> global symbol though, not local.)
>
> Ah, right.  I've seen other cases where the patch removes the
> 'static' qualifier in free functions, though (in the second patch
> too).  Did you need to make those functions externally available?

In C++03, any function argument to a template needs to be externally
available.  These functions are parameters to the traverse templates.

-- 
Lawrence Crowl



More information about the Gcc-patches mailing list