Boost logo

Boost Users :

From: Sohail Somani (s.somani_at_[hidden])
Date: 2007-01-22 17:50:57


> -----Original Message-----
> From: boost-users-bounces_at_[hidden]
> [mailto:boost-users-bounces_at_[hidden]] On Behalf Of
> Ovanes Markarian
>
> I might be wrong here, but I would like to hear some thoughts
> of C++ professionals.
>
> I read in lots of sources about DCLP and how it is broken in
> conjunction with Singleton pattern
> and my question is of a very simple nature. Is it possible to
> solve this problem by introducing
> function calls via function pointers? Or is there still a
> way, that these calls might be inlined
> and if yes then how could this look like? This example is not
> about freeing the singleton, it is
> just about creating it.

Hi,

Perhaps the path-of-least-debugging is to use boost::once?

Sohail


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