
On Mon, Mar 31, 2008 at 6:35 PM, Robert Ramey <ramey@rrsd.com> wrote:
"Felipe Magno de Almeida" <felipe.m.almeida@gmail.com> wrote in message news:a2b17b60803311200v75904141rbe56c2713ef6fe7d@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