Skip to content

Commit f55ce90

Browse files
committed
Fix concepts warning
1 parent 091c92b commit f55ce90

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cp-algo/algebra/fft.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ namespace cp_algo::algebra::fft {
5353
}
5454
}
5555
}
56-
57-
void mul_slow(std::vector<auto> &a, const std::vector<auto> &b) {
56+
template<typename base>
57+
void mul_slow(std::vector<base> &a, const std::vector<base> &b) {
5858
if(a.empty() || b.empty()) {
5959
a.clear();
6060
} else {

cp-algo/algebra/poly.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -654,8 +654,8 @@ namespace cp_algo::algebra {
654654
return ans;
655655
}
656656
};
657-
658-
static auto operator * (const auto& a, const poly_t<auto>& b) {
657+
template<typename base>
658+
static auto operator * (const auto& a, const poly_t<base>& b) {
659659
return b * a;
660660
}
661661
};

0 commit comments

Comments
 (0)