News for hackers. Stuff that matters.
Re:Show HN: Floating point arithmetic types in C++ for any s... by tyleo on Monday October 21, 2024 @07:30PM (#41909632)
I’ve also done this with hash… though given the footguns scattered about, I wouldn’t be surprised if it broke the spec.
Re:Show HN: Floating point arithmetic types in C++ for any s... by Conscat on Tuesday October 22, 2024 @12:36AM (#41911240)
That is a completely intended way to use std::hash, along with a few other functions like std::tuple_size and std::tuple_element.