|
Boost-Commit : |
From: ahd6974-boostorg_at_[hidden]
Date: 2008-07-20 02:49:19
Author: andreas_huber69
Date: 2008-07-20 02:49:19 EDT (Sun, 20 Jul 2008)
New Revision: 47624
URL: http://svn.boost.org/trac/boost/changeset/47624
Log:
This should fix the PingPong example failure for GCC.
Text files modified:
trunk/libs/statechart/example/PingPong/Player.hpp | 18 ++++++++++++------
1 files changed, 12 insertions(+), 6 deletions(-)
Modified: trunk/libs/statechart/example/PingPong/Player.hpp
==============================================================================
--- trunk/libs/statechart/example/PingPong/Player.hpp (original)
+++ trunk/libs/statechart/example/PingPong/Player.hpp 2008-07-20 02:49:19 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