InvalidChartTest2.cpp 883 B

1234567891011121314151617181920212223242526272829303132333435
  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. namespace sc = boost::statechart;
  9. struct A;
  10. struct InvalidChartTest : sc::state_machine< InvalidChartTest, A > {};
  11. struct B;
  12. struct A : sc::simple_state< A, InvalidChartTest, B > {};
  13. struct B : sc::simple_state< B, A > {};
  14. // A does not have an orthogonal region with the number 1
  15. struct C : sc::simple_state< C, A::orthogonal< 1 > > {};
  16. int main()
  17. {
  18. InvalidChartTest machine;
  19. machine.initiate();
  20. return 0;
  21. }