Skip to content

Commit aa48020

Browse files
committed
compatibility with AtCoder's old compiler
1 parent e73b6d0 commit aa48020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cp-algo/math/fft.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ namespace cp_algo::math::fft {
278278
using base = std::decay_t<decltype(a[0])>;
279279
dft<base>::init();
280280
if(k <= (1 << 16)) {
281-
auto ap = std::ranges::to<std::vector<base, big_alloc<base>>>(a);
281+
std::vector<base, big_alloc<base>> ap(begin(a), end(a));
282282
mul_truncate(ap, b, 2 * k);
283283
mod_split(ap, k, bpow(dft<base>::factor, k));
284284
std::ranges::copy(ap | std::views::take(k), begin(a));

0 commit comments

Comments
 (0)