InvalidChartTest1.cpp 784 B

1234567891011121314151617181920212223242526272829303132
  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 A : sc::simple_state< A, InvalidChartTest > {};
  12. // A does not have inner states
  13. struct B : sc::simple_state< B, A > {};
  14. int main()
  15. {
  16. InvalidChartTest machine;
  17. machine.initiate();
  18. return 0;
  19. }