
1 Sep
2011
1 Sep
'11
2:02 p.m.
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?