Skip to content

Feature request for better safety while storing the generator #11

@apolukhin

Description

@apolukhin

This issue is related to the boostorg/spirit#436

The problem is that it is very simple to misuse the Spirit (or Proto) by storing a result that holds references to temporaries. @Kojoley noted that there may be a way to static assert such cases or store the input by value if the value is an rvalue.

Test case and some discussion available at boostorg/spirit#436

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions