Login
From:
www.foonathan.net
(Uncensored)
subscribe
Tutorial: Emulating strong/opaque typedefs in C++
https://www.foonathan.net/2016/10/strong-typedefs/
links
backlinks
Roast topics
Find topics
Find it!
Strong or opaque typedefs are typedefs that truly create new types instead of aliases. They are very useful to prevent accidental conversions and give more semantic meanings. This post shows you how they can be emulated in C++ today.