microsoft / microsoft/STL

Spaceship CPO wording in [cmp.alg] needs an overhaul

Open
#1,374 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

LWG issue needed
Dominant language
C++
Stars
11.1k
Forks
1.7k
Avg merge
4d 15h
Merged PRs (30d)
22

Description

WG21-N4861's spaceship customization point objects are specified in [cmp.alg] with an older form of wording. There are a couple of things that should be cleaned up:

  • The CPOs should pass arguments as lvalues.
  • There should be clear wording to block unqualified name lookup when activating ADL.

Found while developing #1370.

Contributor guide

Open the contributing guide

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 WG21-N4861's [[cmp.alg]] wording and the context from issue #1370. Revise the specification so the CPOs pass arguments as lvalues and clearly block unqualified lookup while activating ADL; done means both requested wording issues are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
compilers
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.