Complete.Org: Mailing Lists: Archives: freeciv-dev: April 2005:
[Freeciv-Dev] Re: (PR#12893) [PATCH] improved hash tables
Home

[Freeciv-Dev] Re: (PR#12893) [PATCH] improved hash tables

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: vasc@xxxxxxxxxxxxxx
Subject: [Freeciv-Dev] Re: (PR#12893) [PATCH] improved hash tables
From: "Jason Short" <jdorje@xxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Apr 2005 10:01:53 -0700
Reply-to: bugs@xxxxxxxxxxx

<URL: http://bugs.freeciv.org/Ticket/Display.html?id=12893 >

Benoit Hudson wrote:

> (2) breaking constness (data and key are const; but to free them we need
> to remove the const quals) is unfortunate; I'm not sure what the most
> elegant solution is.  This isn't a new problem: hash_replace and
> hash_lookup_data return void* rather than const void*.

Simple: data and key must not be const.

-jason





[Prev in Thread] Current Thread [Next in Thread]