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