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
Comment:
(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
implemented.
Thanks for the report!
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/3963#comment:4> Boost C++ Libraries <http://www.boost.org/> 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