Boost logo

Boost Announcement :

From: Pavel Vozenilek (pavel_vozenilek_at_[hidden])
Date: 2005-05-04 18:19:15

The formal review of Singleton library written by Jason Hise
starts today, May 5th, and lasts 10 days.

The library is available at

The singleton documentation can be browsed online at

Singleton is feature rich library:

- ensuring single instance of a class
  and global access point to this instance

- with policies specifying:

  - when the instance gets created
    (manually, immediatelly, when first used, ...)

  - how is the instance created
    (by new, malloc, in static memory, ...)

  - when the instance gets destroyed
    (never, by priority, after another singleton, ...)

Parametrized singleton called Multiton is provided:

  City::pointer p1("Chicago");
  City::pointer p2("Brussels");

will create two different "singletons" of the same type.

Another feature is ability to register resources
(like shared pointer) who will get destroyed
in controlled order, when the application exits.

Not yet implemented features are:
 - MT safety
 - self-destroying singleton with timeout
 - bjam compatible tests

The library is known to work with several newer compilers,
VC7.1 among them. Help with other compilers is welcomed.

When submitting reviews, please state explicitly whether
or not you believe that the library should be accepted into Boost.

For more information on the Boost formal review process,
please see


Boost-announce list run by bdawes at, david.abrahams at, gregod at, cpdaniel at, john at