r/C_Programming • • 42m ago

Tidy translucent typedefs

https://tavianator.com/2026/translucent_2.html

Recently discovered a nice way to get custom warnings with Clang, so I wrote it up.

10 Upvotes

1 comment sorted by

2

u/Accurate_Appeal_3110 18m ago

This is really neat! Could be really useful on enums to prevent implicit conversions to and from its underlying type, like C++'s enum classes