From 86c69085eb5da44ebf57b3fedeb397134db7de09 Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Tue, 10 Dec 2002 08:11:24 +0000 Subject: [PATCH] portability tweaks [SVN r16581] --- example/fsm/state_machine.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/example/fsm/state_machine.hpp b/example/fsm/state_machine.hpp index baa28af..9c58a9c 100644 --- a/example/fsm/state_machine.hpp +++ b/example/fsm/state_machine.hpp @@ -39,7 +39,8 @@ class state_machine public: typedef long state_t; - + typedef void (Derived::* invariant_func_t)() const; + template< typename DerivedEvent > struct event : aux::event @@ -92,10 +93,14 @@ class state_machine template< long State - , void (Derived::* invariant_func)() const = 0 +#if !defined(BOOST_INTEL_CXX_VERSION) && (!defined(__GNUC__) || __GNUC__ >= 3) + , invariant_func_t f = static_cast(0) +#else + , invariant_func_t f = 0 +#endif > struct state - : fsm::aux::state + : fsm::aux::state { };