Boost logo

Boost :

Subject: Re: [boost] [MSM] Compile-time error using SubMachines and events that carries some data
From: Christophe Henry (christophe.j.henry_at_[hidden])
Date: 2013-05-26 16:25:33


----- Original Message -----
From: "Fernando Pelliccioni" <fpelliccioni_at_[hidden]>
Newsgroups: gmane.comp.lib.boost.devel
To: <boost_at_[hidden]>
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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk