Boost logo

Boost Users :

From: Michael Marcin (mmarcin_at_[hidden])
Date: 2006-09-14 16:52:41


"Michael Marcin" <mmarcin_at_[hidden]> wrote in message
news:ee7ljj$9o4$1_at_sea.gmane.org...
> Using WinARM version 20060606 (gcc 4.1.1) compiling with -fno-rtti gives:
>
> 1>..\..\sdk\boost\inc/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&)':
> 1>..\..\sdk\boost\inc/boost/detail/sp_counted_impl.hpp(150): error:
> cannot use typeid with -fno-rtti
> 1>..\..\sdk\boost\inc/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&)':
> 1>..\..\sdk\boost\inc/boost/detail/sp_counted_impl.hpp(220): error:
> cannot use typeid with -fno-rtti
> 1>..\..\sdk\boost\inc/boost/shared_ptr.hpp: In function 'D*
> boost::get_deleter(const boost::shared_ptr<U>&)':
> 1>..\..\sdk\boost\inc/boost/shared_ptr.hpp(540): error: cannot use typeid
> with -fno-rtti
>
> I thought typeid can work at compile-time without rtti (seems to for
> msvc8) but I guess not.
>
> Any ideas?

So I take it there is no flags for gcc to enable compile-time rtti only and
there
are no other ways around the typeid error in shared_ptr's implementation.


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