How to store a "dispatch table" in a class?
Bracket-H opened this issue · 1 comments
Is it even possible?
Storing the state machine itself seems to require hacks like "dummy template classes"
Anyone actually use this library in an actual project, or is this just a metaprogramming masturbation exercise?
I RTFM but it's incomplete.
as per the 'user guide'
"dispatchable concept is required for the dispatch table"
ok, user guide, where is the entry for "dispatch table"?
"There is none lol! But have an example that showcases the utility "make_dispatch_table" that declares it in main() LOL"
Ok, user guide, but what if I don't want that stored in a class?
It's all "auto" because the type underneath is something like
boost::ext::sml::v1_1_8::utility::detail::make_dispatch_table <SDL_Event, 0, boost::ext::sml::v1_1_8::back::sm< boost::ext::sml::v1_1_8::back::sm_policy < InputStateMachine > > , 0, 1, 2, 3, 4 >;
What do you say to that user, guide?
https://www.youtube.com/watch?v=qxknRbLvlJY
Ahhhhh, yes. That explains everything.
But seriously, how do I use this POS?!
Since it's "auto" i can't just put that in a class member section, can I?
Perhaps as a reference and then daisy chaining it to the destination?
I wouldn't know, the only programming I know is the kind you can actually use without
https://www.youtube.com/watch?v=qxknRbLvlJY
Really enjoying that "small footprint high performance state machine" stuff here, guys.
is it more than wankery in a vacuum? or a damn match 3 web game?
What about 100000 bots in a game? With classes and stuff?
all std::optional or what? All hacky dummy classes or what?
https://www.youtube.com/watch?v=qxknRbLvlJY
C'mon man.
Is it via 'static'? This library is so old but so obtuse.
I always wondered about that.
How any project can be old, still somewhat maintained but horribly documented.
Aren't you enthused about this project? Don't you wake up every day going "Ahh, I haven't died in my sleep, time to go back to my beloved boost sml and spread it to the world"?
Or is it really just a game of metaprogramming flexing in this case?
I'm not actually a troll. I'm just a pretty dense ignorant moron who got honeydicked by the siren song of this software, but is ultimately unable to use it cause I'm kind of behind the times, yet wasn't aware of this project back then when it was in the 'honeymoon phase' and now the people left must be intimate with the workings but too uncaring to make the docs better.
Cause THEY don't need the docs.
You know what. Fuck this. I don't deserve this library. YOU DO.