/** \file
\brief singleton public header */
-#ifndef HH_singleton_
-#define HH_singleton_ 1
+#ifndef HH_SENF_Utils_singleton_
+#define HH_SENF_Utils_singleton_ 1
// Custom includes
#include <boost/utility.hpp>
: boost::noncopyable
{
protected:
+ singleton();
+ ~singleton();
+
static Self & instance(); ///< Return singleton instance
+ static bool alive(); ///< Return \c true, if instance ok, \c false otherwise
private:
/** \brief Internal
};
static force_creation creator_;
+ static bool alive_;
};
}