Don't allow singleton use w/o registrationComplete()
[folly.git] / folly / Singleton.h
index 2c699e4793d7224c54a45b6acc5dbb9cdeec0962..e8344cef55348bba3375de28b91e4b414f846ffd 100644 (file)
@@ -358,7 +358,9 @@ class SingletonVault {
     }
   };
 
-  explicit SingletonVault(Type type = Type::Strict) : type_(type) {}
+  static Type defaultVaultType();
+
+  explicit SingletonVault(Type type = defaultVaultType()) : type_(type) {}
 
   // Destructor is only called by unit tests to check destroyInstances.
   ~SingletonVault();