Skip to content

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

Open
@mknejp

Description

@mknejp

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    🔖 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions