Skip to content

Commit 006aec8

Browse files
committed
fixed shadow name exit
1 parent 94dfec9 commit 006aec8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/fsm_cxx/fsm-sm.hh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -592,13 +592,13 @@ namespace fsm_cxx {
592592
std::string event_name{};
593593
S to{};
594594
Guard guard_fn{nullptr};
595-
Action entry{nullptr};
596-
Action exit{nullptr};
595+
Action entry_fn{nullptr};
596+
Action exit_fn{nullptr};
597597

598598
public:
599599
transition_builder(machine_t &tt)
600600
: owner(tt) {}
601-
void build() { owner.transition(from, Transition{event_name, to, std::move(guard_fn), std::move(entry), std::move(exit)}); }
601+
void build() { owner.transition(from, Transition{event_name, to, std::move(guard_fn), std::move(entry_fn), std::move(exit_fn)}); }
602602
template<typename Evt,
603603
std::enable_if_t<std::is_base_of<Event, std::decay_t<Evt>>::value && !std::is_same<Evt, std::string>::value, bool> = true>
604604
transition_builder &transition(S from_, Evt const &, S to_) {
@@ -612,11 +612,11 @@ namespace fsm_cxx {
612612
return (*this);
613613
}
614614
transition_builder &entry_action(Action &&fn) {
615-
entry = fn;
615+
entry_fn = fn;
616616
return (*this);
617617
}
618618
transition_builder &exit_action(Action &&fn) {
619-
exit = fn;
619+
exit_fn = fn;
620620
return (*this);
621621
}
622622
};

0 commit comments

Comments
 (0)