Summary:
Test Plan: fbmake runtests, OBC no longer segfaults
Reviewed By: mshneer@fb.com
Subscribers: fbcode-common-diffs@, trunkagent, mcduff, marccelani, hitesh, mshneer, njormrod, lins
FB internal diff:
D1573880
return std::weak_ptr<T>(get_shared({typeid(T), name}, vault));
}
- std::weak_ptr<T> get_weak(const char* name) {
- return std::weak_ptr<T>(get_shared({typeid(T), name}, vault_));
- }
-
// Allow the Singleton<t> instance to also retrieve the underlying
// singleton, if desired.
T* ptr() { return get_ptr(type_descriptor_, vault_); }