We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a46b9f2 commit 0854309Copy full SHA for 0854309
1 file changed
src/alfred/math/mod-int.hpp
@@ -19,13 +19,13 @@ class ModInt {
19
}
20
value_type v;
21
constexpr ModInt(void) noexcept : v(0) {}
22
- template <class T, is_signed_int_t<T> * = nullptr>
+ template <class T, is_signed_int_t<T> *_ = nullptr>
23
constexpr ModInt(T _v) {
24
int64_t x = (int64_t)(_v % (int64_t)(mod()));
25
if (x < 0) x += mod();
26
v = (uint32_t)(x);
27
28
- template <class T, is_unsigned_int_t<T> * = nullptr>
+ template <class T, is_unsigned_int_t<T> *_ = nullptr>
29
constexpr ModInt(T _v) { v = (uint32_t)(_v % mod()); }
30
constexpr value_type val() const noexcept { return v; }
31
constexpr ModInt operator+() const noexcept { return *this; }
0 commit comments