Tags: #emulating #typedefs #strongoropaque
"Strong or opaque typedefs are a very powerful feature if you want to prevent errors with the type system "
https://foonathan.github.io/blog/2016/10/19/strong-typedefs.html
"Strong or opaque typedefs are a very powerful feature if you want to prevent errors with the type system "
https://foonathan.github.io/blog/2016/10/19/strong-typedefs.html
foonathan.github.io
Tutorial: Emulating strong/opaque typedefs in C++
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.