Make Optional nothrow_default_constructible
[folly.git] / folly / Optional.h
index def3670f00ab69946c0fce6eb12441eebd4466dd..84f5d4439ea1300efda80d342ff5b35009dade31 100644 (file)
@@ -96,7 +96,7 @@ class Optional {
   static_assert(!std::is_abstract<Value>::value,
                 "Optional may not be used with abstract types");
 
-  Optional()
+  Optional() noexcept
     : hasValue_(false) {
   }