From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7502ddf2c6c41330 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!fu-berlin.de!uni-berlin.de!not-for-mail From: "Alex R. Mosteo" Newsgroups: comp.lang.ada Subject: Re: Missing features in Ada.Containers Date: Fri, 08 Oct 2004 14:43:27 +0200 Message-ID: <41668B6F.10807@mailinator.com> References: <416657E2.9050503@mailinator.com> <41666578$1_1@baen1673807.greenlnk.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de WiD7Q0nB1QCTq8bR2AvMDAWyHncZ+mtqHb0I4qESaWJ03xGZk= User-Agent: Mozilla Thunderbird 0.8 (X11/20040913) X-Accept-Language: en-us, en In-Reply-To: <41666578$1_1@baen1673807.greenlnk.net> Xref: g2news1.google.com comp.lang.ada:4921 Date: 2004-10-08T14:43:27+02:00 List-Id: Martin Dowie wrote: > Alex R. Mosteo wrote: > >>Of the top of my head I find notable the absence of the "hashed >>strings" container. Now it seems you're alone with a "hashed map" >>whose keys are generic of constrained nature. Thus you must make some >>leaps to have the old (and in my case, most used) hashed string >>container. Indeed it requires ugly conversions between the key type, >>String, defining the hashing function simply to reuse the >>Ada.Hash_String, etc. It smells so wrong to me that I'm almost sure >>I'm missing something obvious here. > > > Can't you use "Ada.Containers.Indefinite_Hashed_Maps"? That's it. I knew I was missing something :( When I looked at the package I missed that the Key was unconstrained too.