Boost C++ Libraries: Ticket #3220: Event responded to multiple times in one update https://svn.boost.org/trac10/ticket/3220 <p> I have created a state that has three orthogonal regions. This states to an event, evSay, by printing a message. One of the child states posts evSay in its ctor. Instead of the expected message, I get teh message repeated three times. </p> <p> see attached code </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3220 Trac 1.4.3 anonymous Fri, 26 Jun 2009 12:51:49 GMT attachment set https://svn.boost.org/trac10/ticket/3220 https://svn.boost.org/trac10/ticket/3220 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">bug.cpp</span> </li> </ul> <p> code example </p> Ticket anonymous Fri, 26 Jun 2009 14:10:06 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/3220#comment:1 https://svn.boost.org/trac10/ticket/3220#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> The observed behavior is in line with the one specified in the reference: </p> <p> &lt;<a href="http://www.boost.org/libs/statechart/doc/reference.html#forward_event">http://www.boost.org/libs/statechart/doc/reference.html#forward_event</a>&gt; </p> <p> Line number 38 of bug.cpp currently reads ... </p> <p> return forward_event(); </p> <p> Replace this with ... </p> <p> return discard_event(); </p> <p> ... and the program should then work as expected. </p> <p> Note that forward_event() should only be used in cases where a react member function determines that the passed event should be handled either in an outer state or a different orthogonal region. </p> Ticket