#include #include using std::cout; using std::endl; using namespace ::Loki; namespace { struct A { ~A(){} }; struct B { ~B(){} }; struct C { ~C(){} }; unsigned int GetLongevity(C*) { return 1; } }//ns anon extern void Test_Singleton() { cout << "Testing Loki\\Singleton" << endl; typedef SingletonHolder SingletonHolder1_t; typedef SingletonHolder SingletonHolder2_t; typedef SingletonHolder SingletonHolder3_t; A& p = SingletonHolder1_t::Instance(); SingletonHolder2_t::Instance(); SingletonHolder3_t::Instance(); cout << endl << endl; }