Boost logo

Boost Users :

Subject: Re: [Boost-users] [pool] Singleton implementation
From: Eric J. Holtman (eric_at_[hidden])
Date: 2009-10-20 08:46:41


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.

Basically, you need to ensure the templates (which contain static data)
get instantiated only once.


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