logoalt Hacker News

Joker_vDtoday at 5:16 PM0 repliesview on HN

Frankly, "sizeof(T*)" should generate a warning if T is anything other than void, or a function type.

Yes, I know that C technically allows rather heterogenous representations for pointers to different types, but in practice there is difference only between object pointers and function pointers.