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>
14 namespace sc
= boost::statechart
;
15 namespace mpl
= boost::mpl
;
20 struct InconsistentHistoryTest
: sc::state_machine
<
21 InconsistentHistoryTest
, A
> {};
24 struct A
: sc::simple_state
< A
, InconsistentHistoryTest
, B
> {};
26 struct B
: sc::simple_state
< B
, A
> {};
31 InconsistentHistoryTest machine
;
33 // A does not have history
34 machine
.clear_shallow_history
< A
, 0 >();