phoenix_placeholders.hpp 1.2 KB

1234567891011121314151617181920212223242526
  1. // Copyright 2011 Christophe Henry
  2. // henry UNDERSCORE christophe AT hotmail DOT com
  3. // This is an extended version of the state machine available in the boost::mpl library
  4. // Distributed under the same license as the original.
  5. // Copyright for the original version:
  6. // Copyright 2005 David Abrahams and Aleksey Gurtovoy. Distributed
  7. // under the Boost Software License, Version 1.0. (See accompanying
  8. // file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_MSM_FRONT_EUML_PHOENIX_PLACEHOLDERS_H
  11. #define BOOST_MSM_FRONT_EUML_PHOENIX_PLACEHOLDERS_H
  12. #include <boost/phoenix/core/argument.hpp>
  13. // provide some meaningful placeholders (instead of arg1...arg4)
  14. namespace boost { namespace msm { namespace front { namespace euml
  15. {
  16. boost::phoenix::expression::argument<1>::type const _event = {};
  17. boost::phoenix::expression::argument<2>::type const _fsm = {};
  18. boost::phoenix::expression::argument<3>::type const _source = {};
  19. boost::phoenix::expression::argument<4>::type const _target = {};
  20. // this is for state actions
  21. boost::phoenix::expression::argument<3>::type const _state = {};
  22. }}}}
  23. #endif //BOOST_MSM_FRONT_EUML_PHOENIX_PLACEHOLDERS_H