On Sun, May 26, 2013 at 5:25 PM, Christophe Henry < christophe.j.henry@googlemail.com> wrote:
----- Original Message ----- From: "Fernando Pelliccioni" < fpelliccioni@gmail.com> Newsgroups: gmane.comp.lib.boost.devel To:
Sent: Thursday, May 23, 2013 11:24 PM Subject: Re: [MSM] Compile-time error using SubMachines and events that carries some data Thanks Takatoshi,
Seemed odd to me that MSM instantiate a State using a "wrong" Event. I thought I was doing something wrong.
The enable_if solution works perfect. :)
Thanks and regards, Fernando Pelliccioni
As Takatoshi (thanks a lot!) correctly explains, MSM does not know with which event a state will be entered as it's a run-time decision, while templates are instantiated at compile-time. I understand the confusion but I'm afraid there is not much to do about it :(
Regards, Christophe
Thanks Christophe, As the Transition-Table is a compile-time structure, I thought that States could only be instantiated using the associated Events in the Transition-Table. However, don't worry, the "Concept Overloading Simulation" ( enable_if ) solution of works perfect :) Thanks and regards, Fernando.