cplusplus / cplusplus/draft

[over.over] p1 Eliminate the ambiguity in the sentence

Open
#6,127 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TeX
Stars
221
Forks
813
Avg merge
16h 4m
Merged PRs (30d)
36

Description

An id-expression whose terminal name refers to an overload set S and that appears without arguments is resolved to a function, a pointer to function, or a pointer to member function for a specific function that is chosen from a set of functions selected from S determined based on the target type required in the context (if any), as described below.

Emphasis mine, whether it means:

  1. S is determined based on the target type, or
  2. a set of functions is determined based on the target type.

? Although, S seems to only rely on the result of the name lookup. However, the sentence requires us to check other subclauses t o determine what the intent actually means.

Is it an improvement?

An id-expression whose terminal name refers to an overload set S and that appears without arguments is resolved to a function, a pointer to function, or a pointer to member function for a specific function that is chosen from S'(a set of functions) selected from S, where S' is determined based on the target type required in the context (if any) as described below.

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.

Research direction

Start with the quoted overload-resolution sentence in issue #6127 and read the surrounding subclauses it references to determine whether the target type selects S or a subset of S. Done means revising the sentence so that relationship is unambiguous while preserving the intended standard wording.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, tex
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.