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 13 14 namespace sc = boost::statechart; 15 namespace mpl = boost::mpl; 16 17 18 19 struct A; 20 struct InconsistentHistoryTest : sc::state_machine< 21 InconsistentHistoryTest, A > {}; 22 23 struct B; 24 struct A : sc::simple_state< A, InconsistentHistoryTest, B > {}; 25 26 struct B : sc::simple_state< B, A > {}; 27 28 main()29int main() 30 { 31 InconsistentHistoryTest machine; 32 machine.initiate(); 33 // A does not have history 34 machine.clear_deep_history< A, 0 >(); 35 return 0; 36 } 37