Boost logo

Boost :

Subject: [boost] Testing -fno-rtti builds (was: [function] function_base.hpp:220: error: cannot use typeid with -fno-rtti)
From: Emil Dotchevski (emildotchevski_at_[hidden])
Date: 2009-01-08 13:10:53


On Thu, Jan 8, 2009 at 9:21 AM, Doug Gregor <doug.gregor_at_[hidden]> wrote:
> On Wed, Jan 7, 2009 at 5:33 PM, Steven Watanabe <watanabesj_at_[hidden]> wrote:
>> Emil Dotchevski wrote:
>>>
>>> Does boost::function not support -fno-rtti by design (linux/gcc 4.1.3)?
>>
>> target, target_type, and contains require typeid. I suppose that in
>> principle these could be disabled.
>
> Yes, it's possible, and I'd certainly accept a patch that did so.

Someone correct me if I'm doing it wrong, but for example the
RTTI-less and typeid-less configurations of Boost Exception, the
library I'm maintaining, are tested only by me on my own computer, and
I'm only testing them with MSVC and a single version of linux/gcc.
Shouldn't the automatic trunk/release tests handle these, as well as
other supported configurations?

I guess what I'm saying is, I can make a patch to make boost::function
work without RTTI, but I'm certainly not up to running those tests
too. :)

--
Emil Dotchevski
Reverge Studios, Inc.
http://www.revergestudios.com/reblog/index.php?n=ReCode

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk