Re: [boost] [MSM] compiling MSM with GCC 4.4.1 and -fno-rtti

Hi All
I try to compile boost msm in an embedded target with gcc 4.4.1 for performance reasons I want to disable RTTI. I'm having problems because backend is using boost::any which is uses RTTI. Is it possible to remove this dependency ?. or introduce some compile switch like in shared pointers .... BOOST_NO_STD_TYPEINFO
Thanks in advance. Richie
Hi all, Interestingly, this also happens with gcc by simply including <boost/function.hpp>. I see there is a BOOST_NO_RTTI switch, does someone see a problem if I use it as a way to disable the features making use of any or function? Christophe

Christophe Henry wrote:
Interestingly, this also happens with gcc by simply including <boost/function.hpp>.
I think I fixed this some time ago? Which Boost and which g++?
I see there is a BOOST_NO_RTTI switch, does someone see a problem if I use it as a way to disable the features making use of any or function?
BOOST_NO_RTTI is the right switch for any, for function (before the fix) you'd have needed BOOST_NO_TYPEID. There is a difference on, for example, MSVC.
participants (2)
-
Christophe Henry
-
Peter Dimov