|
Boost : |
From: Felipe Magno de Almeida (felipe.m.almeida_at_[hidden])
Date: 2008-03-31 17:17:57
On Mon, Mar 31, 2008 at 6:35 PM, Robert Ramey <ramey_at_[hidden]> wrote:
>
> "Felipe Magno de Almeida" <felipe.m.almeida_at_[hidden]> wrote in message
> news:a2b17b60803311200v75904141rbe56c2713ef6fe7d_at_mail.gmail.com...
[snip]
> > Changing std::multiset to std::set would be enough, wouldn't it?
>
> Nope - that was exactly the problem. If the same type is used
> in different DLLS, then there will be multiple static objects created
> each loaded/unloaded as the dlls themselves are loaded/unloaded.
Sorry, now I understand. I forgot about the key_compare.
But it is possible to walk a equal_range and search for this address
before adding.
I'll patch my version and let you know if it works ok.
This should let multiple BOOST_CLASS_EXPORT works.
> Robert Ramey
Regards,
-- Felipe Magno de Almeida
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk