From d64ba1ab5892006838903d578dcf5ce7e1cb9fd6 Mon Sep 17 00:00:00 2001 From: Daniela Engert Date: Sat, 13 May 2017 08:44:39 +0200 Subject: [PATCH] Fix compiler warnings about narrowing conversions caused by integral promotion of internal types. Signed-off-by: Daniela Engert --- include/boost/msm/back/state_machine.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; }