Follow

what if: a c++ compiler setting that generates warnings when two pointers have different types,

_but_ not if one of them is a "void *"?

· Mastodon Twitter Crossposter · 1 · 0 · 0
@devurandom What do you mean? C++ already treats implicit re-casting from one pointer type to another as an error, (void *) or otherwise.
And C compilers (GCC and Clang) then generate warnings in exactly that way.
Sign in to participate in the conversation
Cybrespace

cybrespace: the social hub of the information superhighway

jack in to the mastodon fediverse today and surf the dataflow through our cybrepunk, slightly glitchy web portal