id summary reporter owner description type status milestone component version severity resolution keywords cc 3859 [Boost.utility] achinkoff@… No-Maintainer "Having considered [http://www.research.ibm.com/designpatterns/pubs/ph-jun96.txt] I propose singleton implementation. I had attached ""singleton.hpp"" to this letter. Below is the test program: {{{ #include #include class A : public boost::Singleton { // // Only Singleton class can create and delete us! // SINGLETON_IS_MY_FRIEND; public: void foo(){ printf(""foo!\n""); } A(){ printf(""A()\n""); } ~A(){ printf(""~A()\n""); } }; void main() { // It is not compiled: //A a = A::Instance(); // That is exactly as it should be used: A::Instance().foo(); } }}} Test program outputs: {{{ A() foo! ~A() }}} I suggest include ""singleton.hpp"" into ""utility.hpp"" header that it can be used along with: boost::noncopyable, etc." Feature Requests closed Boost 1.42.0 utility Boost 1.41.0 Optimization wontfix