Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GB 2 (012): 4.2.2: Same <T, const T> #351

Closed
CaseyCarter opened this issue Feb 28, 2017 · 3 comments
Closed

GB 2 (012): 4.2.2: Same <T, const T> #351

CaseyCarter opened this issue Feb 28, 2017 · 3 comments

Comments

@CaseyCarter
Copy link
Collaborator

CaseyCarter commented Feb 28, 2017

Technical Comment

Is 'const' part of the type?
In 4.2.2 Concept Same [concepts.lib.corelang.same] we read:
"Same<T, U>() is satisfied if and only if T and U denote the same type."
is the intention that Same<const T, T>() is true or false?

Proposed Resolution

Clarify the meaning - perhaps in terms of std::is_same or using the same wording ("T and U name the same type with the same cv-qualifications")

@CaseyCarter CaseyCarter changed the title GB 2: Same <T, const T> GB 2 (012): 4.2.2: Same <T, const T> Mar 1, 2017
@CaseyCarter
Copy link
Collaborator Author

CaseyCarter commented Mar 1, 2017

2017-03-01 LEWG triage: LWG (Likely NAD).

@CaseyCarter CaseyCarter added the P2 label Mar 5, 2017
@CaseyCarter
Copy link
Collaborator Author

C++14 [basic.type.qualifier]/1 says "The cv-qualified or cv-unqualified versions of a type are distinct types." "distinct types" are clearly not "the same type."

@ericniebler
Copy link
Owner

I believe this is handled now by the resolution for #321, which strikes the wording GB2 is objecting to. #321 is in ready status, so closing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants