Lets start with a simple class in C++ :
class aClass {
bool b;
aClass(bool x){b=x;}
};
Is it possible to typedef 2 new types stateTrue and stateFalse so that if I do:
stateTrue variable;
it would translate to:
aClass variable(true);
?
An alternative to inheritance could be to make
aClassatemplate: