boostorg / statechart

Boost.org statechart module
http://boost.org/libs/statechart
22 stars 43 forks source link

exception when passing nullptr to transit #14

Open PointClouder opened 4 years ago

PointClouder commented 4 years ago

in my opinion a hand-tailored transition like

state::transit< Dest, Context, MyEvent >( nullptr, e );

where i pass an event without an action should be valid. however, transition function gets called in transition_function::operator() causing an exception derefencing a nullptr.

usecase: access e in destintation state using triggering_event()