Boost logo

Boost Users :

From: Andreas Huber (ahd6974-spamboostorgtrap_at_[hidden])
Date: 2008-04-23 16:57:07


Hi Igor

> I'd like to define some events of my state machine as templates
> that would be instantiated just before posting to the state
> machine. However, it seems that there is no way to define
> reactions with unspecialized templates, so I have to specialize
> them at the stage of reaction definition.

Right, for a reaction you have to specify a actual type, not a template.

> The way to do this I can think about is to parametrize the state
> machine itself. But this means parametrizing *all* the states:

Exactly.

> Besides, all the state machine then should be defined in the header
> file..
> Do I miss something? Is there some less weird way to do this?

I'm afraid, I don't see any good way how you could do this. May I ask why
you'd need to define a reaction for a templated event?

Regards,

-- 
Andreas Huber
When replying by private email, please remove the words spam and trap
from the address shown in the header. 

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net