Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
pmalynin
· 2y ago · 0 comments
In general this isn’t true (i guess it is in this specific context). For example I believe it’s totally expected to specialize std hash
Comments
[–]
tyleo
2y ago
I’ve also done this with hash… though given the footguns scattered about, I wouldn’t be surprised if it broke the spec.
[–]
Conscat
2y ago
That is a completely intended way to use std::hash, along with a few other functions like std::tuple_size and std::tuple_element.