Boost logo

Boost :

From: Hickerson, David A (david.a.hickerson_at_[hidden])
Date: 2005-07-28 18:28:04


Have you checked out the loki library on SourceForge? It has a singleton
implementation along the lines you are trying implement.

If you have not read this paper about multi-threaded singletons, I
suggest you do.
http://erdani.org/publications/DDJ_Jul_Aug_2004_revised.pdf

Dave

-----Original Message-----
From: Jason Hise [mailto:chaos_at_[hidden]]
Sent: Thursday, July 28, 2005 3:17 PM
To: boost_at_[hidden]
Subject: Re: [boost] singleton design plan

Michael Goldshteyn wrote:

>What is:
>
>namespace boost
>{
> const class
> {
>
>???
>

const class { ... } null;

Defines a global variable named null, which is constant and of an
unnamed type defined by the class declaration. I think this is
standards conforming, but now that you mention it I'm not positive. I
will have to check with other compilers to make sure.

-Jason

_______________________________________________
Unsubscribe & other changes:
http://lists.boost.org/mailman/listinfo.cgi/boost


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk