Update README.md

This commit is contained in:
Francis
2021-04-03 17:27:34 +08:00
committed by GitHub
parent ea416eed20
commit ffa2f33886

View File

@@ -185,7 +185,7 @@ singleton *instance() {
lock_guard<mutex> guard(lock_);
if (p == nullptr) {
singleton *tmp = static_cast<singleton *>(operator new(sizeof(singleton)));
new(p)singleton();
new(tmp)singleton();
p = tmp;
}
}