Skip to content

Commit f5c30a3

Browse files
authored
Add comment to static_assert
1 parent db0fc0d commit f5c30a3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

atcoder/convolution.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ std::vector<long long> convolution_ll(const std::vector<long long>& a,
277277
internal::inv_gcd(MOD1 * MOD2, MOD3).second;
278278

279279
static constexpr int MAX_AB_BIT = 24;
280-
static_assert(MOD1 % (1ull << MAX_AB_BIT) == 1);
281-
static_assert(MOD2 % (1ull << MAX_AB_BIT) == 1);
282-
static_assert(MOD3 % (1ull << MAX_AB_BIT) == 1);
280+
static_assert(MOD1 % (1ull << MAX_AB_BIT) == 1, "MOD1 isn't enough to support an array length of 2^24.");
281+
static_assert(MOD2 % (1ull << MAX_AB_BIT) == 1, "MOD2 isn't enough to support an array length of 2^24.");
282+
static_assert(MOD3 % (1ull << MAX_AB_BIT) == 1, "MOD3 isn't enough to support an array length of 2^24.");
283283
assert(a.size() + b.size() - 1 <= (1ull << MAX_AB_BIT));
284284

285285
auto c1 = convolution<MOD1>(a, b);

0 commit comments

Comments
 (0)