boostorg / boostorg/proto

Feature request for better safety while storing the generator

Open
#11 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
23
Forks
41
PR merge metrics
No merged PRs in 30d

Description

This issue is related to the https://github.com/boostorg/spirit/issues/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 https://github.com/boostorg/spirit/issues/436

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no repository files; start with the test case and discussion linked from Boost Spirit issue #436. Determine the agreed behavior for stored results that reference temporaries, including whether invalid cases should be rejected or rvalues stored by value. Done requires an agreed design and corresponding safety coverage.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.