diff --git a/include/boost/msm/back/state_machine.hpp b/include/boost/msm/back/state_machine.hpp index 8bb84ab..be4d89b 100644 --- a/include/boost/msm/back/state_machine.hpp +++ b/include/boost/msm/back/state_machine.hpp @@ -1275,7 +1275,7 @@ class state_machine : //public Derived m_events_queue.m_events_queue.push_back( ::boost::bind( pf, this, evt, - EVENT_SOURCE_MSG_QUEUE)); + static_cast(EVENT_SOURCE_MSG_QUEUE))); } template void enqueue_event_helper(EventType const& , ::boost::mpl::true_ const &) @@ -1552,8 +1552,8 @@ class state_machine : //public Derived m_deferred_events_queue.m_deferred_events_queue.push_back( std::make_pair( ::boost::bind( - pf, this, e, (EVENT_SOURCE_DIRECT|EVENT_SOURCE_DEFERRED)), - m_deferred_events_queue.m_cur_seq+1)); + pf, this, e, static_cast(EVENT_SOURCE_DIRECT|EVENT_SOURCE_DEFERRED)), + static_cast(m_deferred_events_queue.m_cur_seq+1))); } protected: // interface for the derived class @@ -1748,7 +1748,7 @@ class state_machine : //public Derived m_events_queue.m_events_queue.push_back( ::boost::bind( pf, this, evt, - EVENT_SOURCE_DIRECT | EVENT_SOURCE_MSG_QUEUE)); + static_cast(EVENT_SOURCE_DIRECT | EVENT_SOURCE_MSG_QUEUE))); return false; }