InvalidChartTest3.cpp 961 B

123456789101112131415161718192021222324252627282930313233343536
  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/mpl/list.hpp>
  9. namespace sc = boost::statechart;
  10. namespace mpl = boost::mpl;
  11. struct A;
  12. struct InvalidChartTest : sc::state_machine< InvalidChartTest, A > {};
  13. struct B;
  14. struct C;
  15. struct A : sc::simple_state< A, InvalidChartTest, mpl::list< B, C > > {};
  16. // B resides in the 0th region not the 1st
  17. struct B : sc::simple_state< B, A::orthogonal< 1 > > {};
  18. struct C : sc::simple_state< C, A::orthogonal< 1 > > {};
  19. int main()
  20. {
  21. InvalidChartTest machine;
  22. machine.initiate();
  23. return 0;
  24. }