[MSM] Boost.MSM: statemachine to transition on templatized event-type
Hi there,
having tested Boost.MSM, I'm pretty happy with it.
It's interesting, in that it seems to handle all states in a static table.
No "new" operator etc.
Since there is no "new" and all is static, I cannot use the runtime, to
specialize my transitions. So instead, I have to use templates!
Unfortunately I'm not a template master, and the compiler is giving me an
error.
Here's what I'm trying:
template <typename EventT>
struct Machine_ : public msm::front::state_machine_def
On Fri, May 29, 2015 at 10:06 AM, Gavin Lambert
On 29/05/2015 17:08, nice sw123 wrote:
gcc gives this error: d.cpp:119:5: error: ‘g_row’ was not declared in this scope g_row
, Use msm::g_row instead.
Ok, I've tried it. Unfortunately the compiler is not eating it. So I checked https://github.com/boostorg/msm/blob/c9569d1fb3ce5eae8396eff955180dfbb29ed22... But the following also does *not* work: msm::front::state_machine_def<EventT>::g_row (?)
On Fri, May 29, 2015 at 12:36 PM, nice sw123
On Fri, May 29, 2015 at 10:06 AM, Gavin Lambert
wrote:
On 29/05/2015 17:08, nice sw123 wrote:
gcc gives this error: d.cpp:119:5: error: ‘g_row’ was not declared in this scope g_row
, Use msm::g_row instead.
Ok, I've tried it. Unfortunately the compiler is not eating it.
So I checked
https://github.com/boostorg/msm/blob/c9569d1fb3ce5eae8396eff955180dfbb29ed22...
But the following also does *not* work: msm::front::state_machine_def<EventT>::g_row
(?)
This also does not work:
msm::front::state_machine_def
For users browsing Gmane Unfortunately this topic is not in a single thread, but is displayed... segmented into 2 parts (reason: I did not subscribe on the first post [in which I also CC'd the author of MSM], and had to repost (after subscribing). The author of MSM (Monsieur Henry) has kindly taken the time to write a good response. You can find it here: http://article.gmane.org/gmane.comp.lib.boost.user/84038
participants (2)
-
Gavin Lambert
-
nice sw123