Is there a way to “expand” an enum in C++ for “type-switching”?
For a project I need an observer class (owned by a Subject that then notifies all of its observers) that handles other behaviours.
These observers work by calling their onNotify( Event* ) method that then executes some behaviour based on the type of observer.
The way the method works is as follows: