Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r51264 - sandbox/msm/boost/msm
From: christophe.j.henry_at_[hidden]
Date: 2009-02-15 15:15:44


Author: chenry
Date: 2009-02-15 15:15:44 EST (Sun, 15 Feb 2009)
New Revision: 51264
URL: http://svn.boost.org/trac/boost/changeset/51264

Log:
minor bugfix
Text files modified:
   sandbox/msm/boost/msm/dispatch_table.hpp | 9 ++++++++-
   sandbox/msm/boost/msm/metafunctions.hpp | 2 ++
   2 files changed, 10 insertions(+), 1 deletions(-)

Modified: sandbox/msm/boost/msm/dispatch_table.hpp
==============================================================================
--- sandbox/msm/boost/msm/dispatch_table.hpp (original)
+++ sandbox/msm/boost/msm/dispatch_table.hpp 2009-02-15 15:15:44 EST (Sun, 15 Feb 2009)
@@ -121,7 +121,14 @@
         
         // Cell initializer function object, used with mpl::for_each
         template <class Transition>
- void operator()(Transition const&) const
+ typename ::boost::enable_if<typename has_not_real_row_tag<Transition>::type,void >::type
+ operator()(Transition const&) const
+ {
+ // version for not real rows. No problem because irrelevant for process_event
+ }
+ template <class Transition>
+ typename ::boost::disable_if<typename has_not_real_row_tag<Transition>::type,void >::type
+ operator()(Transition const&) const
         {
             typedef typename create_stt<Fsm>::type stt;
             BOOST_STATIC_CONSTANT(int, state_id =

Modified: sandbox/msm/boost/msm/metafunctions.hpp
==============================================================================
--- sandbox/msm/boost/msm/metafunctions.hpp (original)
+++ sandbox/msm/boost/msm/metafunctions.hpp 2009-02-15 15:15:44 EST (Sun, 15 Feb 2009)
@@ -30,6 +30,7 @@
 BOOST_MPL_HAS_XXX_TRAIT_DEF(pseudo_exit)
 BOOST_MPL_HAS_XXX_TRAIT_DEF(concrete_exit_state)
 BOOST_MPL_HAS_XXX_TRAIT_DEF(composite_tag)
+BOOST_MPL_HAS_XXX_TRAIT_DEF(not_real_row_tag)
 
 namespace boost { namespace msm
 {
@@ -255,6 +256,7 @@
 template< typename T1 >
 struct not_a_row
 {
+ typedef int not_real_row_tag;
     struct dummy_event
     {
     };


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