Fix EventBaseLoopController destruction races
[folly.git] / folly / Optional.h
index 84f5d4439ea1300efda80d342ff5b35009dade31..1832009054bb3a42ea71981837083dc20f7e15d7 100644 (file)
@@ -91,6 +91,8 @@ class OptionalEmptyException : public std::runtime_error {
 template<class Value>
 class Optional {
  public:
+  typedef Value value_type;
+
   static_assert(!std::is_reference<Value>::value,
                 "Optional may not be used with reference types");
   static_assert(!std::is_abstract<Value>::value,