////////////////////////////////////////////////////////////////////////////// // (c) Copyright Andreas Huber Doenni 2004-2005 // Distributed under the Boost Software License, Version 1.0. (See accompany- // ing file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include namespace sc = boost::statechart; struct EvX : sc::event< EvX > {}; struct Active; struct InvalidTransitionTest : sc::state_machine< InvalidTransitionTest, Active > {}; struct Idle0; struct Active : sc::simple_state< Active, InvalidTransitionTest, Idle0, sc::has_deep_history > {}; struct Running0 : sc::simple_state< Running0, Active > {}; // Invalid transition to deep history from a state residing on the same // level as the history connector. struct Idle0 : sc::simple_state< Idle0, Active > { typedef sc::transition< EvX, sc::deep_history< Running0 > > reactions; }; int main() { InvalidTransitionTest machine; machine.initiate(); return 0; }