We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 091c92b commit f55ce90Copy full SHA for f55ce90
cp-algo/algebra/fft.hpp
@@ -53,8 +53,8 @@ namespace cp_algo::algebra::fft {
53
}
54
55
56
-
57
- void mul_slow(std::vector<auto> &a, const std::vector<auto> &b) {
+ template<typename base>
+ void mul_slow(std::vector<base> &a, const std::vector<base> &b) {
58
if(a.empty() || b.empty()) {
59
a.clear();
60
} else {
cp-algo/algebra/poly.hpp
@@ -654,8 +654,8 @@ namespace cp_algo::algebra {
654
return ans;
655
656
};
657
658
- static auto operator * (const auto& a, const poly_t<auto>& b) {
+ static auto operator * (const auto& a, const poly_t<base>& b) {
659
return b * a;
660
661
0 commit comments