Re: GHashTable and const
- From: "Felipe Contreras" <felipe contreras gmail com>
- To: "Andrew W. Nosenko" <andrew w nosenko gmail com>
- Cc: gtk-devel-list gnome org, Havoc Pennington <hp pobox com>
- Subject: Re: GHashTable and const
- Date: Mon, 14 Jul 2008 23:52:57 +0300
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]