completion_event.hpp 956 B

12345678910111213141516171819202122232425262728293031
  1. // Copyright 2008 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_COMMON_COMPLETION_EVENT_H
  11. #define BOOST_MSM_FRONT_COMMON_COMPLETION_EVENT_H
  12. namespace boost { namespace msm { namespace front
  13. {
  14. struct none
  15. {
  16. // make every event convertible to none.
  17. // to support standard-conform implementation of pseudo exits.
  18. none(){}
  19. template <class Event>
  20. none(Event const&){}
  21. typedef int completion_event;
  22. };
  23. }}}
  24. #endif //BOOST_MSM_FRONT_COMMON_COMPLETION_EVENT_H