Re: [Boost-bugs] [Boost C++ Libraries] #3963: state_machine<>::post_event is not protected

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #3963: state_machine<>::post_event is not protected
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2010-04-04 18:45:47

#3963: state_machine<>::post_event is not protected
  Reporter: Arne Babnik <boost@…> | Owner: andreas_huber69
      Type: Bugs | Status: closed
 Milestone: Boost 1.43.0 | Component: statechart
   Version: Boost 1.42.0 | Severity: Optimization
Resolution: fixed | Keywords:
Changes (by andreas_huber69):

  * status: assigned => closed
  * resolution: => fixed


 (In [61048]) Fixes #3963. post_event() is now protected and forwards to
 post_event_impl(), which unfortunately must remain public. So, client code
 can still abuse the class by calling post_event_impl(), but the abuse
 should now be more obvious. I considered adding an assert to
 post_event_impl(), so that unauthorized calls from the outside could at
 least be detected at runtime, but it turned out that an assert requires
 more additional machinery than expected, which is why it was not

 Thanks for the report!

Ticket URL: <>
Boost C++ Libraries <>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:02 UTC