boostorg / msm

Boost.org msm module
http://boost.org/libs/msm
31 stars 53 forks source link

Fixed bug in AnonymousTutorialWithFunctors.cpp where always_false wou… #44

Closed Binary-Eater closed 1 year ago

Binary-Eater commented 2 years ago

…ld return true instead of false

I believe that the always_false guard in this example should return false instead of true. This change does not end up impacting the output of the program, but prevents transitions from occuring potentially when using the always_false guard. Based on the documentation this example is referrenced in, always_false and always_true should be mutually exclusive guards in the visualization of the example. I believe that is not the case when both return true.

211221213404