Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r71793 - branches/msm/msm_phoenix/boost/msm/front/euml
From: christophe.j.henry_at_[hidden]
Date: 2011-05-07 17:30:17


Author: chenry
Date: 2011-05-07 17:30:16 EDT (Sat, 07 May 2011)
New Revision: 71793
URL: http://svn.boost.org/trac/boost/changeset/71793

Log:
added meaningful phoenix placeholders
Added:
   branches/msm/msm_phoenix/boost/msm/front/euml/phoenix_placeholders.hpp (contents, props changed)
Text files modified:
   branches/msm/msm_phoenix/boost/msm/front/euml/euml.hpp | 3 +++
   1 files changed, 3 insertions(+), 0 deletions(-)

Modified: branches/msm/msm_phoenix/boost/msm/front/euml/euml.hpp
==============================================================================
--- branches/msm/msm_phoenix/boost/msm/front/euml/euml.hpp (original)
+++ branches/msm/msm_phoenix/boost/msm/front/euml/euml.hpp 2011-05-07 17:30:16 EDT (Sat, 07 May 2011)
@@ -16,5 +16,8 @@
 #include <boost/msm/front/euml/guard_grammar.hpp>
 #include <boost/msm/front/euml/state_grammar.hpp>
 #include <boost/msm/front/euml/stt_grammar.hpp>
+#ifdef BOOST_MSM_EUML_PHOENIX_SUPPORT
+#include <boost/msm/front/euml/phoenix_placeholders.hpp>
+#endif
 
 #endif //BOOST_MSM_FRONT_EUML_EUML_H

Added: branches/msm/msm_phoenix/boost/msm/front/euml/phoenix_placeholders.hpp
==============================================================================
--- (empty file)
+++ branches/msm/msm_phoenix/boost/msm/front/euml/phoenix_placeholders.hpp 2011-05-07 17:30:16 EDT (Sat, 07 May 2011)
@@ -0,0 +1,24 @@
+// Copyright 2011 Christophe Henry
+// henry UNDERSCORE christophe AT hotmail DOT com
+// This is an extended version of the state machine available in the boost::mpl library
+// Distributed under the same license as the original.
+// Copyright for the original version:
+// Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
+// under the Boost Software License, Version 1.0. (See accompanying
+// file LICENSE_1_0.txt or copy at
+// http://www.boost.org/LICENSE_1_0.txt)
+
+#ifndef BOOST_MSM_FRONT_EUML_PHOENIX_PLACEHOLDERS_H
+#define BOOST_MSM_FRONT_EUML_PHOENIX_PLACEHOLDERS_H
+
+#include <boost/phoenix/core/argument.hpp>
+// provide some meaningful placeholders (instead of arg1...arg4)
+namespace boost { namespace msm { namespace front { namespace euml
+{
+ boost::phoenix::expression::argument<1>::type const _event = {};
+ boost::phoenix::expression::argument<2>::type const _fsm = {};
+ boost::phoenix::expression::argument<3>::type const _source = {};
+ boost::phoenix::expression::argument<4>::type const _target = {};
+}}}}
+
+#endif //BOOST_MSM_FRONT_EUML_PHOENIX_PLACEHOLDERS_H


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