Skip to content

Commit 25fc1d7

Browse files
committed
revert constexpr -> const as it was causing build issues
1 parent c71b509 commit 25fc1d7

File tree

15 files changed

+22
-22
lines changed

15 files changed

+22
-22
lines changed

library/convolution/gcd_convolution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! for all pairs (i,j) where gcd(i,j)==k
88
//! @time O(n log n)
99
//! @space O(n)
10-
constexpr int mod = 998'244'353;
10+
const int mod = 998'244'353;
1111
vi gcd_convolution(const vi& a, const vi& b) {
1212
int n = sz(a);
1313
vi c(n);

library/convolution/lcm_convolution.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
//! for all pairs (i,j) where lcm(i,j)==k
88
//! @time O(n log n)
99
//! @space O(n)
10-
constexpr int mod = 998'244'353;
10+
const int mod = 998'244'353;
1111
vi lcm_convolution(const vi& a, const vi& b) {
1212
int n = sz(a);
1313
vector<ll> sum_a(n), sum_b(n);

library/data_structures/seg_tree_uncommon/implicit.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ template<int N> struct implicit_seg_tree {
88
if (l[0] == r[0]) return {l[0], l[1] + r[1]};
99
return min(l, r);
1010
}
11-
static constexpr dt unit{LLONG_MAX, 0LL};
11+
static const dt unit{LLONG_MAX, 0LL};
1212
struct node {
1313
dt num;
1414
ll lazy = 0;

library/math/fibonacci.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
//! @endcode
1212
//! @time O(log n)
1313
//! @space O(log n)
14-
constexpr int mod = 998'244'353;
14+
const int mod = 998'244'353;
1515
array<ll, 2> fib(ll n) {
1616
if (n == 0) return {0LL, 1LL};
1717
auto [x, y] = fib(n >> 1);

library/math/mod_int.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
constexpr int mod = 998244353;
2+
const int mod = 998244353;
33
//! https://github.com/kth-competitive-programming/kactl/blob/main/content/number-theory/ModularArithmetic.h
44
//! https://codeforces.com/blog/entry/122714
55
struct mint {

library/math/n_choose_k/grow.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
constexpr int mod = 17; //!< must be prime
2+
const int mod = 17; //!< must be prime
33
struct comb {
44
ll inv = 1, fact = 1, inv_fact = 1;
55
};

library/math/n_choose_k/pascals_identity.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
constexpr int mod = 17; //!< composite ok
2+
const int mod = 17; //!< composite ok
33
vector<vector<ll>> ch(1010); //!< ch[n][k] = n choose k
44
rep(i, 0, sz(ch)) {
55
ch[i].resize(i + 1, 1);

library/math/partitions.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#pragma once
2-
constexpr int mod = 998'244'353;
2+
const int mod = 998'244'353;
33
//! https://oeis.org/A000041
44
//! @code
55
//! auto p = partitions(n);

tests/library_checker_aizu_tests/handmade_tests/mod_int.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
#include "../../../kactl/content/number-theory/euclid.h"
66
// trick to remove const so I can use arbitrary prime mode
77
// here
8-
#define constexpr ;
8+
#define const ;
99
#include "../../../library/math/mod_int_pow.hpp"
10-
#undef constexpr
10+
#undef const
1111
int main() {
1212
cin.tie(0)->sync_with_stdio(0);
1313
mint val;

tests/library_checker_aizu_tests/math/binary_exponentiation_mod.test.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
#include "../template.hpp"
44
// trick to remove const so I can use arbitrary prime mode
55
// here
6-
#define constexpr ;
6+
#define const ;
77
#include "../../../library/math/mod_int_pow.hpp"
8-
#undef constexpr
8+
#undef const
99
int main() {
1010
cin.tie(0)->sync_with_stdio(0);
1111
mod = 1'000'000'007;

0 commit comments

Comments
 (0)