This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: unordered_map with valarray as key
- From: Daniel Krügler <daniel dot kruegler at gmail dot com>
- To: Daniel Molina García <unomas at correo dot ugr dot es>
- Cc: "libstdc++" <libstdc++ at gcc dot gnu dot org>
- Date: Mon, 28 Oct 2013 13:52:23 +0100
- Subject: Re: unordered_map with valarray as key
- Authentication-results: sourceware.org; auth=none
- References: <1382964043 dot 2909 dot 10 dot camel at do-what-u-should>
2013/10/28 Daniel Molina García <unomas@correo.ugr.es>:
> I'm not sure if my code is valid, but I think that unordered_map is not
> working ok with valarray as key.
Correct. The code is invalid, because the standard does not specify a
specialization of std::hash for std::valarray.
- Daniel