Singleton implementation

Cornelius Schumacher schumacher at kde.org
Wed Jul 9 08:32:16 BST 2003


On Wednesday 09 July 2003 07:11, Zack Rusin wrote:
>
> I had this on the drive for quite a while - it's a singleton
> implementation heavily based on the one from "Modern C++ Design".

How do I make a singleton with a private constructor with your class? It's 
often desirable to prevent a singleton from being used without the singleton 
semantics.

-- 
Cornelius Schumacher <schumacher at kde.org>





More information about the kde-core-devel mailing list