boost::parser compilation error on mac with boost 1.88

Open
#269 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start with boost/parser/detail/stl_interfaces/view_adaptor.hpp around line 199 and reproduce the reported compilation with macOS, clang 18.1.8, and Boost 1.88. Check the range_adaptor_closure reference and confirm the completed change by rebuilding the affected parser code without the reported error.

Written by the indexing model from the issue text.

Description

view_adaptor.hpp (boost::parser) does not compile on a mac with clang 18.1.8 and boost 1.88:

/include/boost/parser/detail/stl_interfaces/view_adaptor.hpp:199:35: error: no template named 'range_adaptor_closure' in namespace 'std::ranges'; did you mean 'std::__range_adaptor_closure'?
199 |     using range_adaptor_closure = std::ranges::range_adaptor_closure<D>;
    |                                                          ^~~~~~~~~~~~~
/bin/../include/c++/v1/__ranges/range_adaptor.h:58:8: note: 'std::__range_adaptor_closure' declared here
58 | struct __range_adaptor_closure {
   |            ^
1 error generated.
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.