Boost logo

Boost :

Subject: Re: [boost] [any] new version
From: Mathias Gaunard (mathias.gaunard_at_[hidden])
Date: 2011-09-01 10:02:37


On 01/09/2011 12:57, Martin Bidlingmaier wrote:
>> Mathias Gaunard wrote:
>>> You could make next_id a function with weak extern linkage, which should
>>> be able to make it work.
>
>
> Thanks for the replies,
>
> I hope I fixed the linkage problems now, by making next_id() inline. There were other linker related issues, which are hopefully fixed now as well. The modified any.hpp header and a simple linker test are attached

Ok, so we'll assume that it works on most compilers.

Now why is that better than using the standard mechanism to do this,
apart from removing the requirement of having RTTI enabled?


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