These are chat archives for boostorg/hana

9th
Jul 2017
Barrett Adair
@badair
Jul 09 2017 00:00
I did that too
Jason Rice
@ricejasonf
Jul 09 2017 00:00
was that no good?
Barrett Adair
@badair
Jul 09 2017 00:01
I did both at the same time and made a TODO because I didn't implement Hashable
Jason Rice
@ricejasonf
Jul 09 2017 00:02
Hashable is only used to decide what bucket a key/value will go in. It still uses Comparable to decide if the key is a match
Barrett Adair
@badair
Jul 09 2017 00:02
Sure, but both are required if buckets are needed
Or, both are required
Jason Rice
@ricejasonf
Jul 09 2017 00:03
The default for hana::hash is to just lift it to its hana::type
Barrett Adair
@badair
Jul 09 2017 00:03
So by default everything is Hashable?
Jason Rice
@ricejasonf
Jul 09 2017 00:03
yup :P
Barrett Adair
@badair
Jul 09 2017 00:04
I was getting a weird error about something not being hashable
Jason Rice
@ricejasonf
Jul 09 2017 00:05
oh.. maybe I am mistaken
I guess there are only implementations for IntregralConstant, type, and string... maybe others
Jason Rice
@ricejasonf
Jul 09 2017 00:10
That means a group_by algorithm would have to return a value that is bothComparable and Hashable
If it was Orderable it could be sorted too