Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r67085 - trunk/boost/msm/back
From: christophe.j.henry_at_[hidden]
Date: 2010-12-07 12:35:12


Author: chenry
Date: 2010-12-07 12:35:12 EST (Tue, 07 Dec 2010)
New Revision: 67085
URL: http://svn.boost.org/trac/boost/changeset/67085

Log:
bugfix (anonymous transition of a submachine was not called for the initial state)
Text files modified:
   trunk/boost/msm/back/state_machine.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: trunk/boost/msm/back/state_machine.hpp
==============================================================================
--- trunk/boost/msm/back/state_machine.hpp (original)
+++ trunk/boost/msm/back/state_machine.hpp 2010-12-07 12:35:12 EST (Tue, 07 Dec 2010)
@@ -2100,6 +2100,9 @@
      void start(Event const& incomingEvent)
      {
          region_start_helper< ::boost::mpl::int_<0> >::do_start(this,incomingEvent);
+ // give a chance to handle an anonymous (eventless) transition
+ handle_eventless_transitions_helper<library_sm> eventless_helper(this,true);
+ eventless_helper.process_completion_event();
      }
 
      template <class StateType>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk