News for hackers. Stuff that matters.
Re:Maximal Min() and Max() by Joker_vD on Thursday August 08, 2024 @12:53PM (#41193626)

    (void) (&_x == &_y);
Is this... a check for type-compatibility? I don't think actually produces a compilation error if the types are incompatible.
Re:Maximal Min() and Max() by cmovq on Thursday August 08, 2024 @12:58PM (#41193694)
It produces a warning for incompatible pointer types.
Re:Maximal Min() and Max() by Joker_vD on Thursday August 08, 2024 @02:30PM (#41194713)
Okay, it's better than nothing.
Re:Maximal Min() and Max() by mananaysiempre on Thursday August 08, 2024 @03:49PM (#41195466)
FWIW, (&_x - &_y) will give you an error instead.
Re:Maximal Min() and Max() by lokar on Thursday August 08, 2024 @03:30PM (#41195283)
Which you can make an error