This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: hash_map with unsigned long long keys


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]