Missing different-size int <-> NonZeroInt conversions #84352
Labels
C-feature-request
Category: A feature request, i.e: not implemented / a PR.
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
Right now, we have most of the integer type interconversions implemented, but we're missing some falliable NonZero conversions. Namely these:
iN
->NonZeroIM
(whereN
!=M
)uN
->NonZeroIM
(whereN
!=M
)iN
->NonZeroUM
(whereN
!=M
)uN
->NonZeroUM
(whereN
!=M
)NonZeroIN
->iM
(whereN
!=M
)NonZeroIN
->uM
(whereN
!=M
)NonZeroUN
->iM
(whereN
!=M
)NonZeroUN
->uM
(whereN
!=M
)Right now, all of the integer <-> non-zero integer conversions only operate on types of the same size, rather than all the different sizes that the usual conversions allow.
Not sure if these sorts of conversions would be accepted, but my guess is that closing the transitive gap would be a good idea.
The text was updated successfully, but these errors were encountered: