Boost logo

Boost :

Subject: Re: [boost] [any] new version
From: Roman Perepelitsa (roman.perepelitsa_at_[hidden])
Date: 2011-09-02 02:03:43


2011/9/2 Andrey Semashev <andrey.semashev_at_[hidden]>

> On 09/02/2011 09:49 AM, Roman Perepelitsa wrote:
>
>> 2011/9/2 Emil Dotchevski<emildotchevski@**gmail.com<emildotchevski_at_[hidden]>
>> >
>>
>> The existing version of boost::any has the same limitation. If you make
>>>>
>>> rtti
>>>
>>>> info local to dynamic libraries, you won't be able to extra data from
>>>> any
>>>>
>>> in
>>>
>>>> one dynamic library if it was put in in another.
>>>>
>>>
>>> MSVC bakes the RTTI statically in each DLL, but it does work across
>>> DLL boundaries.
>>>
>>
>>
>> It doesn't work on Linux, though.
>>
>
> It does, if you make RTTI public for relocation.

The existing implementation of any works unless you make RTTI local to
dynamic libraries. The new and faster implementation of any works unless you
make type_id local to dynamic libraries. In both cases it's a matter of
specifying the export maps correctly.

Roman Perepelitsa.


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