Re: GHashTable and const



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... :-(

-- 
Andrew W. Nosenko <andrew w nosenko gmail com>


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