Re: GHashTable and const



On Thu, Jul 10, 2008 at 7:00 PM, Andrew W. Nosenko
<andrew w nosenko gmail com> wrote:
> On Thu, Jul 10, 2008 at 5:17 PM, Havoc Pennington <hp pobox com> wrote:
>> Hi,
>>
>> On Thu, Jul 10, 2008 at 6:10 AM, Andrew W. Nosenko
>> <andrew w nosenko gmail com> wrote:
>>> Sorry for long delay, but could you please explain, how changing from
>>>    g_hash_table_size (GHashTable *hash_table);
>>> to
>>>    g_hash_table_size (const GHashTable *hash_table);
>>> would to break any C++ code?  It would to make some bunch of
>>> const_cast<> unneeded and noop -- yes.  But break...  hard to imagine.
>>>
>>
>> Anything assigning or passing in g_hash_table_size as a function
>> pointer would break.
>
> Yes, indeed... :-(

I don't get it, can you explain how exactly?

-- 
Felipe Contreras


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]