Replies: 1 comment
-
|
The closer comparison to make here is with This is likely intentional, not an oversight -- both I would also argue CTAD here hurts readability. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
C++17 added CTAD to std::function by way of a deduction guide. This permits writing:
std::function f = []() { return 3; };But
absl::AnyInvocabledoes not current have this facility. E.g., the following fails to compile:absl::AnyInvocable g = []() { return 3; };Is there thought to adding such a facility?
Beta Was this translation helpful? Give feedback.
All reactions