Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62215 - trunk/boost/msm/back
From: christophe.j.henry_at_[hidden]
Date: 2010-05-25 16:58:15


Author: chenry
Date: 2010-05-25 16:58:14 EDT (Tue, 25 May 2010)
New Revision: 62215
URL: http://svn.boost.org/trac/boost/changeset/62215

Log:
fixed gcc error when -fno-rtti set
Text files modified:
   trunk/boost/msm/back/state_machine.hpp | 7 +++++--
   1 files changed, 5 insertions(+), 2 deletions(-)

Modified: trunk/boost/msm/back/state_machine.hpp
==============================================================================
--- trunk/boost/msm/back/state_machine.hpp (original)
+++ trunk/boost/msm/back/state_machine.hpp 2010-05-25 16:58:14 EDT (Tue, 25 May 2010)
@@ -42,8 +42,9 @@
 #include <boost/bind.hpp>
 #include <boost/bind/apply.hpp>
 #include <boost/function.hpp>
+#ifndef BOOST_NO_RTTI
 #include <boost/any.hpp>
-
+#endif
 #include <boost/msm/row_tags.hpp>
 #include <boost/msm/back/metafunctions.hpp>
 #include <boost/msm/back/history_policies.hpp>
@@ -1445,7 +1446,9 @@
     template <class Event>
     void no_action(Event const&){}
 
- HandledEnum process_any_event( ::boost::any const& evt);
+#ifndef BOOST_NO_RTTI
+ HandledEnum process_any_event( ::boost::any const& evt);
+#endif
 
 private:
     // composite accept implementation. First calls accept on the composite, then accept on all its active states.


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