////////////////////////////////////////////////////////////////////////////// // (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 fsm = boost::fsm; struct EvX : fsm::event< EvX > {}; struct Active; struct InvalidTransitionTest : fsm::state_machine< InvalidTransitionTest, Active > {}; struct Idle0; struct Active : fsm::simple_state< Active, InvalidTransitionTest, fsm::no_reactions, Idle0, fsm::has_deep_history > { }; struct Running0 : fsm::simple_state< Running0, Active > {}; // Invalid transition to deep history from a state residing on the same // level as the history connector. struct Idle0 : fsm::simple_state< Idle0, Active, fsm::transition< EvX, fsm::deep_history< Running0 > > > { }; int main() { InvalidTransitionTest machine; machine.initiate(); return 0; }