Boost logo

Boost Users :

From: Peter Dimov (pdimov_at_[hidden])
Date: 2006-09-15 08:43:45


Michael Marcin wrote:
> "Peter Dimov" <pdimov_at_[hidden]> wrote in message
> news:003201c6d83e$80bf9910$6507a8c0_at_pdimov2...
>> Michael Marcin wrote:
>>> "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
>>>>
>>>> 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.
>>
>> If you don't need to use get_deleter, just patch your local copy to
>> 'return 0' from the three functions.
>
> Fair enough I suppose.

I see that I already have a request for a BOOST_SP_DISABLE_GET_DELETER macro
for this reason, but the earliest it can surface in an official release is
1.35, so the above is your best bet today. :-)


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