boostorg / boostorg/statechart

exception when passing nullptr to transit

Open
#14 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
32
Forks
43
PR merge metrics
No merged PRs in 30d

Description

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()`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.