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
[basic.indet][bit.cast] Why "unsigned ordinary character"? #5070
Comments
I think we mean The notion of unsigned integer type is unrelated. |
I think this point is probably right, but it seems never explicitly stated. Before P1236R1, [basic.fundamental] used the item "unsigned narrow character types" (used to be ambiguous "unsigned character types" before CWG 1539), which implied there may be more than one such types (in which case they are However, the phrase "unsigned narrow character types" was changed to "narrow character types" by P1236R1, then such implication disappeared. And the usage of "unsigned narrow character" (used to be in [dcl.init], changed to "unsigned ordinary character" by P0482R6) became ambiguous (if it was not ambiguous at first). |
The change from "narrow" to "ordinary" became necessary when |
@jensmaurer is there a publicly accessible link to that issue? |
Related: cplusplus/CWG#403 |
@Eisenwave I think that email is just a restatement of the problem, presumably with the intention of creating a CWG issue (@jensmaurer?). So let's close this. |
As
char
is not considered as an unsigned integer type even ifstd::is_unsigned_v<char>
istrue
, can we replace all uses of "unsigned ordinary character" withunsigned char
?The text was updated successfully, but these errors were encountered: