Boost logo

Boost Users :

From: Peter Petrov (ppetrov_at_[hidden])
Date: 2005-08-30 15:12:59

BRIDGES Dick wrote:
> Is there any provision for "event-local" storage? I'd like to create
> events that carry data (e.g., timestamp, source, etc.) to be used by
> reactions and transitions to update state-local storage.
> I didn't see anything like this in the documentation. Bad idea? Major
> drawbacks? If it wouldn't be a problem, how might I go about doing it?

struct MyEvent : public boost::statechart::event<MyEvent>
    int myData;
    double myOtherData;
    MyClass myOtherOtherData;

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at