Skip to content

Comments

Add helpers for Magnitude arithmetic compatibility#640

Merged
chiphogg merged 2 commits intomainfrom
chiphogg/mag-arith-compat#531#607
Jan 23, 2026
Merged

Add helpers for Magnitude arithmetic compatibility#640
chiphogg merged 2 commits intomainfrom
chiphogg/mag-arith-compat#531#607

Conversation

@chiphogg
Copy link
Member

The core helper is AssertMagnitudeU64RationalCompatible<M>, which
produces readable diagnostic errors when M is unsuitable. Since these
are hard compiler errors, we split IsMagnitudeU64RationalCompatible
out to give separate access to the three conditions, to make testing
easier. All of this is in the detail namespace.

Helps #531 and #607.

The core helper is `AssertMagnitudeU64RationalCompatible<M>`, which
produces readable diagnostic errors when `M` is unsuitable.  Since these
are hard compiler errors, we split `IsMagnitudeU64RationalCompatible`
out to give separate access to the three conditions, to make testing
easier.  All of this is in the detail namespace.

Helps #531 and #607.
@chiphogg chiphogg merged commit bb40f2c into main Jan 23, 2026
27 checks passed
@chiphogg chiphogg deleted the chiphogg/mag-arith-compat#531#607 branch January 23, 2026 21:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants