We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We're missing deduction guides for std::function. The following code does not compile with libc++ trunk:
#include
Taken from SO question: https://stackoverflow.com/q/53217511/1708801
The text was updated successfully, but these errors were encountered:
assigned to @ldionne
Sorry, something went wrong.
Fixed a while ago in:
commit e1eabcd Author: Louis Dionne ldionne@apple.com Date: Thu Jul 18 19:50:56 2019 +0000
[libc++] Add C++17 deduction guides for std::function Summary: llvm/llvm-project#38954 Reviewers: Quuxplusone Subscribers: christof, dexonsmith, libcxx-commits Differential Revision: https://reviews.llvm.org/D54410 llvm-svn: 366484
ldionne
No branches or pull requests
Extended Description
We're missing deduction guides for std::function. The following code does not compile with libc++ trunk:
#include
int func(double) { return 0; }
int main() {
std::function f{func}; // guide #1 deduces function<int(double)>
int i = 5;
std::function g = & { return i; }; // guide #2 deduces function<int(double)>
}
Taken from SO question: https://stackoverflow.com/q/53217511/1708801
The text was updated successfully, but these errors were encountered: