-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add folly::Optional::to_optional for easier std::optional conversion
Summary: see title. `static_cast<optional<T>>(foo)` is too much typing. I like thrift optional_field_ref<T>'s to_optional (though on a side note I thought operator* of optional_field_ref T would give me a std::optional but i was wrong) Reviewed By: yfeldblum Differential Revision: D57116214 fbshipit-source-id: 970f4de50ae2fe8e057b320d6c2c881e55aefac7
- Loading branch information
1 parent
8f2d73f
commit 993de7e
Showing
2 changed files
with
20 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters