Closed sstiller closed 2 years ago
Can't you declare the user model like this?
struct sc::user_model
{
int timer;
};
int main()
{
sc::user_model m;
sc sc(&m);
sc.init();
}
In my case I want to provide a more complex structure, declared in a header file which does not know about the state machine. Also this structure shall be used inside Githubissues.
I have a problem with the type of
data_model::user
:user_model
- and it can not be fully declared by a userreinterpret_cast
must be used in the constructor of the state machineWouldn't it be better to use
void* user
, as done in other libraries?