I would like to use something like typedef in my C++ programs to enhance type safety.
As an example, suppose I have two functions
void function1(unsi
There is a c++11 feature called enum class, which is basically a type safe enum. Maybe they can help here.
enum class