Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
secondcoming
on Oct 21, 2024
|
parent
|
context
|
favorite
| on:
Show HN: Floating point arithmetic types in C++ fo...
Technically, you're not supposed to add your own specialisations to the `std` namespace
pmalynin
on Oct 21, 2024
[–]
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
tyleo
on Oct 21, 2024
|
parent
[–]
I’ve also done this with hash… though given the footguns scattered about, I wouldn’t be surprised if it broke the spec.
Conscat
on Oct 22, 2024
|
root
|
parent
[–]
That is a completely intended way to use std::hash, along with a few other functions like std::tuple_size and std::tuple_element.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: