]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/statechart/test/InconsistentHistoryTest3.cpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / statechart / test / InconsistentHistoryTest3.cpp
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 #include <boost/statechart/deep_history.hpp>
12
13 #include <boost/mpl/list.hpp>
14
15
16
17 namespace sc = boost::statechart;
18 namespace mpl = boost::mpl;
19
20
21
22 struct A;
23 struct InconsistentHistoryTest : sc::state_machine<
24 InconsistentHistoryTest, A > {};
25
26 struct B;
27 // A does not have history
28 struct A : sc::simple_state<
29 A, InconsistentHistoryTest, mpl::list< sc::deep_history< B > > > {};
30
31 struct B : sc::simple_state< B, A > {};
32
33
34 int main()
35 {
36 InconsistentHistoryTest machine;
37 machine.initiate();
38 return 0;
39 }