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.
Currently, lambdas can only be bound to
Opt
s 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