Y
Hacker News
new
|
ask
|
show
|
jobs
by
secondcoming
612 days ago
Technically, you're not supposed to add your own specialisations to the `std` namespace
1 comments
pmalynin
612 days ago
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
link
tyleo
612 days ago
I’ve also done this with hash… though given the footguns scattered about, I wouldn’t be surprised if it broke the spec.
link
Conscat
612 days 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.
link