Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

Make it possible to bind lambdas when passed by l-value #84

Closed

Conversation

lethal-guitar
Copy link

Currently, lambdas can only be bound to Opts when passed by r-value. I think it would be nice if lambdas could also be passed by l-value, since it would allow me to separate the parser definition from the logic inside the lambdas. This PR accomplishes that with the help of some SFINAE.

Fixes #58

@lethal-guitar
Copy link
Author

I see that there are some build failures, I'll look into it

@lethal-guitar lethal-guitar deleted the bind-to-lvalue-lambdas branch February 20, 2021 19:02
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot construct Opt from lambda when passed via variable
1 participant