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 //////////////////////////////////////////////////////////////////////////////
9 #include <boost/statechart/state_machine.hpp>
10 #include <boost/statechart/simple_state.hpp>
11 #include <boost/statechart/deep_history.hpp>
13 #include <boost/mpl/list.hpp>
17 namespace sc
= boost::statechart
;
18 namespace mpl
= boost::mpl
;
23 struct InconsistentHistoryTest
: sc::state_machine
<
24 InconsistentHistoryTest
, A
> {};
27 // A does not have history
28 struct A
: sc::simple_state
<
29 A
, InconsistentHistoryTest
, mpl::list
< sc::deep_history
< B
> > > {};
31 struct B
: sc::simple_state
< B
, A
> {};
36 InconsistentHistoryTest machine
;