
12 Apr
2005
12 Apr
'05
10:02 a.m.
Thorsten Ottosen wrote:
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:005901c53e6f$4a180fb0$6501a8c0@pdimov2...
Thorsten Ottosen wrote:
as a related issue, an array is a range, so why define hash_value for it?
So that you can call hash_combine with an array member, something like
what if the member is any other range?
It should still work, unless the other type (nothing to do with range-ness) does not have a hash_value overload.
I'm saying the decision to overload hash_value for arrays seems a bit arbitrary.
We overload hash_value for every standard container. Array support doesn't seem very arbitrary. You seem a bit obsessed with ranges. ;-)