[math] Use integer type in Factorial
All threads resolved!
All threads resolved!
Using an enum has the side effect that you can't do arithmetic without explicitly casting to an integer type. This also produced a compiler warning with clang 10 "arithmetic between different enumeration types is deprecated" -Wdeprecated-anon-enum-enum-conversion
Edited by Timo Koch
Merge request reports
Activity
- Resolved by Timo Koch
Looks okay to me. Eventually we would probably want
factorial
to be an actual method, which can then returnauto
.Is this change worth documenting in the changelog?
- Resolved by Timo Koch
added 1 commit
- 50e5f071 - [math] Deprecated struct Factorial (use factorial function)
added 1 commit
- c56458e2 - [math] Use integer type in Factorial and deprecate struct version (use factorial function)
added 1 commit
- bb0ea7d5 - [math] Use integer type in Factorial and deprecate struct version (use factorial function)
added 1 commit
- 5b8c9776 - [math] Use integer type in Factorial and deprecate struct version (use factorial function)
added 1 commit
- ee9db7a5 - [math] Use integer type in Factorial and deprecate struct version (use factorial function)
added 1 commit
- d57c6a98 - [test][math] Improve factorial/binomial test and use function factorial...
assigned to @simon.praetorius
mentioned in commit eefc417c
Please register or sign in to reply