Add conversion from const folly::Optional to std::optional
Summary: Previous version does not compile when converting from `const folly::Optional` to `std::optional`. This happens in a typical `for (const auto& x : vec)` where `x` is or contains `folly::Optional`. Add a new `const` version in case people case about `Value&` ctor as opposed to `const Value&`. Reviewed By: iahs Differential Revision: D26137442 fbshipit-source-id: 649be596b67a01c6d1f4be341aad65f1099b74a1
Showing
Please register or sign in to comment