[libc-commits] [PATCH] D148971: [libc] Adjust the `cpp:function` type to support lambdas
Joseph Huber via Phabricator via libc-commits
libc-commits at lists.llvm.org
Fri Apr 21 16:00:32 PDT 2023
jhuber6 created this revision.
jhuber6 added reviewers: jdoerfert, sivachandra, lntue, michaelrj, gchatelet.
Herald added subscribers: libc-commits, ecnelises, tschuett.
Herald added projects: libc-project, All.
jhuber6 requested review of this revision.
The current function type does not support generic lambdas because it
relies on the lambda being implicitly convertible to a function pointer.
This patch adds support for this by copying the existing lightweight
`function_ref` type.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D148971
Files:
libc/src/__support/CPP/functional.h
libc/src/__support/CPP/type_traits.h
libc/src/__support/CPP/utility.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D148971.515948.patch
Type: text/x-patch
Size: 4244 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230421/c9c9109e/attachment-0001.bin>
More information about the libc-commits
mailing list