Compilation error with a 'strong typedef'

Open
#234 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cpp
Domain
compilers

Research direction

Start with the minimal reproducible example on Godbolt and reproduce the compilation error using boost::container::vector, the strong typedef, and the simplified parser variants described in the issue. Compare the failing case with the listed workarounds; done means the original intended combination compiles without replacing the container, typedef, or parser expression.

Written by the indexing model from the issue text.

Description

MRE https://godbolt.org/z/fE1ceqehP

To make it compile, either/at least one of:

  • switch boost::container::vector back to std::vector (it has to be exactly that, no other container will work)
  • replace the strong typedef with a weak one
  • simplify the parser to just ( bp::short_ % ',' ).
Dominant language
C++
Stars
182
Forks
28
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from boostorg/parser

All issues in boostorg/parser

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.