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

Signed modulo behavior #899

Open
johnmcfarlane opened this issue Jun 9, 2021 · 0 comments
Open

Signed modulo behavior #899

johnmcfarlane opened this issue Jun 9, 2021 · 0 comments
Labels
request Request for a new feature to be added to CNL

Comments

@johnmcfarlane
Copy link
Owner

johnmcfarlane commented Jun 9, 2021

Surprisingly, I don't think this is supported. E.g.

using modulo_integer = cnl::overflow_integer<int, cnl::modulo_overflow_tag>;
using numeric_limits = cnl::numeric_limits<modulo_integer>;
static_assert(identical(numeric_limits::lowest(), numeric_limits::max() + 1));

Add this tag!

@johnmcfarlane johnmcfarlane added the request Request for a new feature to be added to CNL label Jun 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
request Request for a new feature to be added to CNL
Projects
None yet
Development

No branches or pull requests

1 participant