|
Boost Users : |
Subject: Re: [Boost-users] [pool] Singleton implementation
From: Robert Ramey (ramey_at_[hidden])
Date: 2009-10-20 10:46:35
Eric J. Holtman wrote:
> Larry wrote:
>> FWIW. I occasionally use a scheme in the Loki library. For my needs
>> it was simple and worked.
>> I have not run into any coexistence problems with Boost (1.32 through
>> 1.40 on Windows with
>> MSVC 6, 7, 8, or 9).
>>
>
> I have used Loki stuff too. Under windows, if you're using DLLs
> though, you will need some magic incantations to keep from having
> multiple copies of the Singleton appear.
This is not unique to windows - same issue with linux and I presume
others.
>
> Basically, you need to ensure the templates (which contain static
> data) get instantiated only once.
how do you do this?
Robert Ramey
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net