Lyra icon indicating copy to clipboard operation
Lyra copied to clipboard

Lambdas passed to `opt` and `arg` constructors cannot be move-only

Open mknejp opened this issue 8 months ago • 0 comments

Because the lambda is taken by const& is can only be copied into the parser object, which is not possible if it contains state that can only be moved.

https://godbolt.org/z/d9hGsa1Te

mknejp avatar Jun 06 '24 17:06 mknejp