UnsuppDeepHistoryTest.cpp 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //////////////////////////////////////////////////////////////////////////////
  2. // Copyright 2005-2006 Andreas Huber Doenni
  3. // Distributed under the Boost Software License, Version 1.0. (See accompany-
  4. // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
  5. //////////////////////////////////////////////////////////////////////////////
  6. #include <boost/statechart/state_machine.hpp>
  7. #include <boost/statechart/simple_state.hpp>
  8. #include <boost/statechart/deep_history.hpp>
  9. #include <boost/mpl/list.hpp>
  10. namespace sc = boost::statechart;
  11. namespace mpl = boost::mpl;
  12. struct A;
  13. struct UnsupportedDeepHistoryTest : sc::state_machine<
  14. UnsupportedDeepHistoryTest, A > {};
  15. struct B;
  16. struct A : sc::simple_state<
  17. A, UnsupportedDeepHistoryTest, B, sc::has_deep_history > {};
  18. struct C;
  19. struct D;
  20. struct B : sc::simple_state< B, A, mpl::list< C, D > > {};
  21. struct C : sc::simple_state< C, B::orthogonal< 0 > > {};
  22. struct D : sc::simple_state< D, B::orthogonal< 1 > > {};
  23. int main()
  24. {
  25. UnsupportedDeepHistoryTest machine;
  26. machine.initiate();
  27. return 0;
  28. }