[meta.reflection.queries] [dcl.fct] Disagreement about whether `int()const` is const qualified
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
- Tipo di issue
- Documentazione
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Tranquilla
- Stack tecnologico
- cpp
- Ambito
- documentation
Direzione di ricerca
Inizia confrontando la formulazione citata in [dcl.fct] e [meta.reflection.queries], quindi cerca nella bozza gli usi di “cv-qualified”, “lvalue-qualified” e “rvalue-qualified”. Verifica in che modo la formulazione si rapporta a std::is_const_v<int()const>; il lavoro è completato quando la terminologia e l’intento delle reflection queries sono espressi in modo coerente senza implicare ordinary cv-qualified function types.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
In [dcl.fct] there exists the following note:
A function type that has a cv-qualifier-seq is not a cv-qualified type; there are no cv-qualified function types.
However, [meta.reflection.queries] has the following wording for std::meta::is_const and std::meta::is_volatile:
Returns: true if T represents a const or volatile type, respectively, or a const- or volatile-qualified function type, respectively. Otherwise, false.
The former states that there are no cv-qualified function types, while the latter is directly implying the possibility of cv-qualified function types (otherwise the second half of the first sentence would be redundant). It is quite clear what the latter is trying to state, that is_const(^^int()const) should be true. But if int()const really is a const qualified type, then std::is_const_v<int()const> should be true too which is obviously not intended.
Also, the subsequent definition of std::meta::is_lvalue_reference_qualified and std::meta::is_rvalue_reference_qualified contains:
Returns: true if T represents an lvalue- or rvalue-qualified function type, respectively. Otherwise, false.
The intent here is clear too but "lvalue-qualified" and "rvalue-qualified" do not get used anywhere else.
- Lingua principale
- TeX
- Stelle
- 221
- Fork
- 813
- Merge medio
- 17h 45m
- PR unite (30g)
- 34
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di cplusplus/draft
-
P2-Bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
P2-Bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
[dcl.array] Grammar typo Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
Tutte le issue di cplusplus/draft
Issue simili
-
content
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
GDQuest/learn-gdscript#1395 ·
-
rules
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
HttpClient
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
symfony/symfony-docs#23092 ·
-
[Docs Request]: 模块修改建议 & 增加 Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 90/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 95/100
huggingface/sentence-transformers#4074 ·