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

Some binary operators are missing #163

Closed
saraedum opened this issue Mar 20, 2022 · 0 comments
Closed

Some binary operators are missing #163

saraedum opened this issue Mar 20, 2022 · 0 comments

Comments

@saraedum
Copy link
Member

there is, for example no mpz_class * Element operator.

We should make sure that all operators are free (see #153) and make Element inherit from multiplicative<mpz_class> and multiplicative<mpq_class> instead of multiplicative<ElementClass>.

We also need to provide an explicit operator*(Element, T) and operator(T, Element).

See for some implementation tricks https://www.boost.org/doc/libs/1_69_0/libs/utility/operators.htm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant