|
Boost-Commit : |
From: ahd6974-boostorg_at_[hidden]
Date: 2008-07-20 02:53:58
Author: andreas_huber69
Date: 2008-07-20 02:53:58 EDT (Sun, 20 Jul 2008)
New Revision: 47625
URL: http://svn.boost.org/trac/boost/changeset/47625
Log:
Merged PingPong example fix from trunk to release branch.
Text files modified:
branches/release/libs/statechart/example/PingPong/Player.hpp | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
Modified: branches/release/libs/statechart/example/PingPong/Player.hpp
==============================================================================
--- branches/release/libs/statechart/example/PingPong/Player.hpp (original)
+++ branches/release/libs/statechart/example/PingPong/Player.hpp 2008-07-20 02:53:58 EDT (Sun, 20 Jul 2008)
@@ -79,12 +79,18 @@
struct Player;
struct Waiting;
-// The following class member specialization ensures that
-// state_machine<>::initiate is not instantiated at a point where Waiting
-// is not defined yet.
-template<>
-inline void sc::asynchronous_state_machine<
- Player, Waiting, MyScheduler, MyAllocator >::initiate_impl() {}
+namespace boost
+{
+namespace statechart
+{
+ // The following class member specialization ensures that
+ // state_machine<>::initiate is not instantiated at a point where Waiting
+ // is not defined yet.
+ template<>
+ inline void asynchronous_state_machine<
+ Player, Waiting, MyScheduler, MyAllocator >::initiate_impl() {}
+}
+}
struct Player : sc::asynchronous_state_machine<
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk