This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: hash_map with unsigned long long keys
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Martin Beaudoin <beaudoin dot martin at ireq dot ca>
- Cc: libstdc++ at gcc dot gnu dot org
- Date: Wed, 01 Oct 2003 16:26:20 +0200
- Subject: Re: hash_map with unsigned long long keys
- References: <3F7AE2A1.4090704@ireq.ca>
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.