Fix EventBaseLoopController destruction races
[folly.git] / folly / Optional.h
index def3670f00ab69946c0fce6eb12441eebd4466dd..1832009054bb3a42ea71981837083dc20f7e15d7 100644 (file)
@@ -91,12 +91,14 @@ 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,
                 "Optional may not be used with abstract types");
 
-  Optional()
+  Optional() noexcept
     : hasValue_(false) {
   }