Boost logo

Boost :

Subject: Re: [boost] Boost.Any and RTTI
From: Chris Glover (c.d.glover_at_[hidden])
Date: 2014-07-27 15:42:05


>
>
> On Sun, Jul 27, 2014 at 1:33 PM, Antony Polukhin <antoshkka_at_[hidden]>
> wrote:
>
>> 2014-07-27 1:22 GMT+04:00 Chris Glover <c.d.glover_at_[hidden]>:
>>
>> > Hi,
>> >
>> > I need a Boost.Any like facility that doesn't depend on RTTI, so I
>> patched
>> > Boost.Any to utilize Boost.TypeIndex if BOOST_NO_RTTI is defined.
>> >
>> > The diff is available here;
>> >
>> >
>> https://github.com/cdglove/any/commit/7188b13909a061495ef31f979b55f9779a9e992f
>> >
>> >
>> > Is there any interest in merging this into mainline? Or is someone
>> working
>> > on a more correct patch than this?
>> >
>>
>> There is a set of patches allowing different Boost libraries to work
>> without RTTI right in the repo of the TypeIndex:
>> https://github.com/boostorg/type_index/tree/master/patched
>>
>> Those patches will be applied to the 1.57 version of Boost.
>> TypeIndex is a new library and it is better to get some notes and reviews
>> from users, before migrating other libraries to it. That's why those
>> patches did not make their way into Boost 1.56
>>
>> If you'll find some issues in those patches, feel free to contact me or
>> write to this mailing list. I'll appreciate any help.
>>
>> --
>> Best regards,
>> Antony Polukhin
>>
>> _______________________________________________
>> Unsubscribe & other changes:
>> http://lists.boost.org/mailman/listinfo.cgi/boost
>
>
On Sun, Jul 27, 2014 at 3:32 PM, Chris Glover <c.d.glover_at_[hidden]> wrote:

> Hi Anthony,
>
> Thanks! I found those patches this morning and they made me realize that
> I didn't need to take the approach I did in my patch. I tried to keep the
> API the same in the case of RTTI being available, but now I see TypeIndex
> already provides that service.
>
> So, I will wait until 1.57.
>
> Thanks again,
>
> -- chris
>

Sorry for the top-post - I was hasty. Re-arranged above for clarity.

-- chris


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