????????????????????????????????????????????????????????????????????????????????
?????????????????????????????WHY????????????????????????????????????????????????????????????????????????????
????????????????????????????????????????????????
1 class SingletonStatic
2 {
3 private:
4     static const SingletonStatic* m_instance;
5     SingletonStatic(){}
6 public:
7     static const SingletonStatic* getInstance()
8     {
9         return m_instance;
10     }
11 };
12
13 //??????? before invoke main
14 const SingletonStatic* SingletonStatic::m_instance = new SingletonStatic;