You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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")
The text was updated successfully, but these errors were encountered:
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."
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")
The text was updated successfully, but these errors were encountered: