hash_map with unsigned long long keys
Paolo Carlini
pcarlini@unitus.it
Wed Oct 1 14:26:00 GMT 2003
Martin Beaudoin wrote:
> Hello,
>
> I need to use a hash_map with unsigned long long keys.
>
> Currently, this type of key is not supported by libstdc++.
>
> I would like to propose the following addition to the file
> gcc/libstdc++-v3/include/ext/hash_fun.h:
Hi. There is already a PR about this: libstdc++/12338. I have already
analyzed it a bit and I'm not sure that the fixes you propose (which
indeed come immediately to mind) are completely correct: it looks like
somewhere else there is the hidden assumption that long is the largest type.
I have to investigate the issue a little bit more: in case your solution
turns out to be ok, you will properly acknowledged, of course.
Paolo.
More information about the Libstdc++
mailing list