Add explicit operator=(None) to Optional
Summary: In a minor way, this improves folly::Optional's compliance with std::optional. `op = folly::none` used to work by instantiating an empty optional and passing that in. This is more direct. The existence of this assignment operator is why folly::None must not have a default constructor to support `op = {}` syntax for disengaging the optional. Reviewed By: yfeldblum Differential Revision: D12842963 fbshipit-source-id: 757bb66030a667ef0bc1cbe56d150740e712ed45
Showing
Please register or sign in to comment