Boost logo

Boost Users :

From: Meryl Silverburgh (silverburgh.meryl_at_[hidden])
Date: 2008-07-12 03:16:42


On Sat, Jul 12, 2008 at 1:19 AM, Meryl Silverburgh
<silverburgh.meryl_at_[hidden]> wrote:
> On Fri, Jul 11, 2008 at 6:06 PM, Igor R <boost.lists_at_[hidden]> wrote:
>> Does it compile if you define BOOST_NO_TYPEID ?
>>
>>> My question is why I need to enable 'rtti' in order to use boost shared_ptr ?
>>
>> IIRC, get_deleter() function uses typeid(), which is unavailable in your case.
>
> I have added '#define BOOST_NO_TYPEID ' Before I include
> 'shared_ptr.hpp', but i still get the following error:
>
> /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
>
>
>
> #define BOOST_NO_TYPEID
> #include <boost/shared_ptr.hpp>
>
>
> using namespace std;
> using namespace boost;
>
>
> Can you please tell me if there is a way to use boost smart pointer
> without rtti?
> Thank you.

Thank you. I upgrade to 1.35 boost. And I get pass that problem.

>
>
>> _______________________________________________
>> Boost-users mailing list
>> Boost-users_at_[hidden]
>> http://lists.boost.org/mailman/listinfo.cgi/boost-users
>>
>


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