>>371
static list<Test*>& Test::global_list()
{
 static auto_ptr< list<Test*> > p;
 if(!p.get()) p.reset(new list<Test*>);
 return *p;
}

Test::Test()
{
 global_list().insert(this);
}