[tuple][hash] Hashing a tuple question

1 Jul
2009
1 Jul
'09
10:27 a.m.
The code using fusion::fold is elegant, but you still have to define a functor before using it. Couldn't boost just define a default hasher for tuple like the default comparison <boost/tuple/tuple_comparison.hpp>? I've got a tuple with 3 ints in it. I can compare them for free. Why can't I just hash them for free? All we'd have to do is define a hash_value function for tuple that calls fold.
5832
Age (days ago)
5832
Last active (days ago)
0 comments
1 participants
participants (1)
-
Chris Hite