Boost logo

Boost Users :

From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2008-07-11 18:24:28


Hi,

I am tying use boost's shared_ptr.hpp, but it gives me the following
compile errors:

/usr/include/boost/detail/sp_counted_impl.hpp: In member function
'virtual void* boost::detail::sp_counted_impl_pd<P,
D>::get_deleter(const std::type_info&)':
/usr/include/boost/detail/sp_counted_impl.hpp:150: error: cannot use
typeid with -fno-rtti
/usr/include/boost/detail/sp_counted_impl.hpp: In member function
'virtual void* boost::detail::sp_counted_impl_pda<P, D,
A>::get_deleter(const std::type_info&)':
/usr/include/boost/detail/sp_counted_impl.hpp:220: error: cannot use
typeid with -fno-rtti

I have these in my .h file:

using namespace boost;

class Rect;

typedef shared_ptr<Rect> RectPtr;

My question is why I need to enable 'rtti' in order to use boost
shared_ptr ? And if there is any other smart pointer library which
does not require me to enable rtti ?

Thank you.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net