Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/statechart/test/InvalidChartTest1.cpp @ 45

Last change on this file since 45 was 29, checked in by landauf, 17 years ago

updated boost from 1_33_1 to 1_34_1

File size: 784 bytes
Line 
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
7
8
9#include <boost/statechart/state_machine.hpp>
10#include <boost/statechart/simple_state.hpp>
11
12
13
14namespace sc = boost::statechart;
15
16
17
18struct A;
19struct InvalidChartTest : sc::state_machine< InvalidChartTest, A > {};
20
21struct A : sc::simple_state< A, InvalidChartTest > {};
22
23  // A does not have inner states
24  struct B : sc::simple_state< B, A > {};
25
26
27int main()
28{
29  InvalidChartTest machine;
30  machine.initiate();
31  return 0;
32}
Note: See TracBrowser for help on using the repository browser.