Ticket #4926: 01-msm-defer-events-bug.patch

File 01-msm-defer-events-bug.patch, 1.2 KB (added by Kozlov Taras, 12 years ago)
  • boost/msm/back/state_machine.hpp

    diff -rub boost_1_45_0_old/boost/msm/back/state_machine.hpp boost_1_45_0/boost/msm/back/state_machine.hpp
    old new  
    14071407    }
    14081408    // handling of deferred events
    14091409    // if none is found in the SM, take the following empty main version
    1410     template <class StateType, class Enable = void>
     1410    template <class StateType, class Enable = int>
    14111411    struct handle_defer_helper
    14121412    {
    14131413        handle_defer_helper(deferred_msg_queue_helper<library_sm>& ){}
     
    14221422    // otherwise the standard version handling the deferred events
    14231423    template <class StateType>
    14241424    struct handle_defer_helper
    1425         <StateType, typename enable_if< typename ::boost::msm::back::has_fsm_deferred_events<StateType>::type >::type>
     1425        <StateType, typename enable_if< typename ::boost::msm::back::has_fsm_deferred_events<StateType>::type, int >::type>
    14261426    {
    14271427        handle_defer_helper(deferred_msg_queue_helper<library_sm>& a_queue):
    14281428            events_queue(a_queue),next_deferred_event(){}