-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
constructor deduction guides for folly::Function
Summary: Add constructor deduction guides for `folly::Function`, parallel to the constructor deduction guides for `std::function`. https://en.cppreference.com/w/cpp/utility/functional/function/deduction_guides Supports `const`- and `noexcept`-qualified function-pointers and unambiguously-invocable objects and lifts them into the deduced signature parameterizing `folly::Function`, which is not supported for `std::function`. Note: Curiously, `std::move_only_function` has no constructor deduction guides. Reviewed By: luciang Differential Revision: D52212897 fbshipit-source-id: 1763693159f64933d0e25044bd988ab2fb2e3ef2
- Loading branch information
1 parent
13435f2
commit a1ff042
Showing
2 changed files
with
87 additions
and
0 deletions.
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