
"Peter Dimov" <pdimov@mmltd.net> wrote in message news:006301c53f46$aead49e0$6501a8c0@pdimov2... | 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. well, that a question of definition. | > 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. ;-) yeah, I know :-) -Thorsten