"Michael Marcin"
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
::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
::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.