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