me115 / design_patterns

图说设计模式
http://design-patterns.readthedocs.org/zh_CN/latest/index.html#
Other
6.83k stars 1.8k forks source link

Singleton 单例模式的一个问题 #12

Open liuping001 opened 7 years ago

liuping001 commented 7 years ago

在Singleton的析构函数中delete instance;不是会形成一个死循环吗?

lty2226262 commented 5 years ago

对,他这个写的有问题