Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: downloads/boost_1_34_1/libs/statechart/test/InvalidChartTest3.cpp @ 29

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

updated boost from 1_33_1 to 1_34_1

File size: 961 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#include <boost/mpl/list.hpp>
13
14
15
16namespace sc = boost::statechart;
17namespace mpl = boost::mpl;
18
19
20
21struct A;
22struct InvalidChartTest : sc::state_machine< InvalidChartTest, A > {};
23struct B;
24struct C;
25struct A : sc::simple_state< A, InvalidChartTest, mpl::list< B, C > > {};
26
27// B resides in the 0th region not the 1st
28struct B : sc::simple_state< B, A::orthogonal< 1 > > {};
29struct C : sc::simple_state< C, A::orthogonal< 1 > > {};
30
31int main()
32{
33  InvalidChartTest machine;
34  machine.initiate();
35  return 0;
36}
Note: See TracBrowser for help on using the repository browser.