llvm / llvm/llvm-project

LWG4510: Ambiguity of `std::ranges::advance` and `std::ranges::next` when the difference type is also a sentinel type

Open
#189,859 0 comments 0 reactions 0 assignees View on GitHub
c++26 libc++ lwg-issue ranges
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

**Link:** https://wg21.link/LWG4510

Contributor guide

Open the contributing guide

Research direction

Start with the linked LWG4510 issue, then locate the implementations and tests for std::ranges::advance and std::ranges::next. Determine the specified resolution for the ambiguity when the difference type is also a sentinel type; done means the behavior matches that resolution and the relevant tests pass.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.