Skip to content

Commit 7511ddc

Browse files
committed
Added template function __print for ModInt.
1 parent ba835f9 commit 7511ddc

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

src/alfred/math/mod-int.hpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,8 @@ class DynamicModInt {
163163
using m998 = ModInt<998244353>;
164164
using m107 = ModInt<1000000007>;
165165

166-
void __print(m998 M) {
167-
std::cerr << M;
168-
}
169-
170-
void __print(m107 M) {
166+
template <int mod>
167+
void __print(ModInt<mod> M) {
171168
std::cerr << M;
172169
}
173170

0 commit comments

Comments
 (0)