Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r72824 - trunk/boost/msm/back
From: christophe.j.henry_at_[hidden]
Date: 2011-06-30 16:35:21


Author: chenry
Date: 2011-06-30 16:35:20 EDT (Thu, 30 Jun 2011)
New Revision: 72824
URL: http://svn.boost.org/trac/boost/changeset/72824

Log:
added assertion if pseudo exit gets an invalid event
Text files modified:
   trunk/boost/msm/back/state_machine.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: trunk/boost/msm/back/state_machine.hpp
==============================================================================
--- trunk/boost/msm/back/state_machine.hpp (original)
+++ trunk/boost/msm/back/state_machine.hpp 2011-06-30 16:35:20 EDT (Thu, 30 Jun 2011)
@@ -334,7 +334,8 @@
             template <class ForwardEvent>
             static void helper(ForwardEvent const& ,forwarding_function& )
             {
- // Not our event, ignore
+ // Not our event, assert
+ BOOST_ASSERT(false);
             }
         };
         template <int Dummy>


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