Ticket #8686: state_machine.patch
File state_machine.patch, 1.1 KB (added by , 9 years ago) |
---|
-
state_machine.hpp
1732 1732 template <class StateType,class EventType> 1733 1733 HandledEnum do_process_helper(EventType const& evt, ::boost::mpl::false_ const &, bool is_direct_call) 1734 1734 { 1735 try 1735 // when compiling without exception support there is no formal parameter "e" in the catch handler. 1736 // Declaring a local variable here does not hurt and will be "used" to make the code in the handler 1737 // compilable although the code will never be executed. 1738 std::exception e; 1739 BOOST_TRY 1736 1740 { 1737 1741 return this->do_process_event(evt,is_direct_call); 1738 1742 } 1739 catch(std::exception& e)1743 BOOST_CATCH (std::exception& e) 1740 1744 { 1741 1745 // give a chance to the concrete state machine to handle 1742 1746 this->exception_caught(evt,*this,e); 1743 } 1747 } 1748 BOOST_CATCH_END 1749 1744 1750 return HANDLED_FALSE; 1745 1751 } 1746 1752 // handling of deferred events