4 ms·
(void) (&_x == &_y); Is this... a check for type-compatibility? I don't think actually produces a compilation error if the types are incompatible.
by Joker_vD 2y ago
(void) (&_x == &_y);
Is this... a check for type-compatibility? I don't think actually produces a compilation error if the types are incompatible.
- cmovq 2y agoIt produces a warning for incompatible pointer types.
- Joker_vD 2y agoOkay, it's better than nothing.
- lokar 2y agoWhich you can make an error
- mananaysiempre 2y agoFWIW, (&_x - &_y) will give you an error instead.