From: Andreas Huber
Subject: RE: [Boost-users] [statechart] handling unexpected events To: "Robert Mecklenburg" Date: Monday, September 22, 2008, 11:31 PM Hi Robert
If you really do not want to have the data_delivered::exit() function called when an unknown event occurs then your best option is to define the following reactions for data_delivered:
1. An ordinary transition to then ready state, triggered by the commit event 2. An ordinary transition to the ready state, triggered by exception_thrown event 3. An in_state_reaction triggered by even_base, which first posts the event an then throws an exception
Note: The order of the reactions is relevant.
HTH,
Andreas
-- Andreas Huber When replying by private email, please remove the words spam and trap from the address shown in the header.