Skip to content

Commit f3f49ed

Browse files
committed
remove accidentally used C++23 feature
1 parent d7628dc commit f3f49ed

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

include/fftconv/fftconv.hpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
#include <complex>
99
#include <fftconv/fftw.hpp>
1010
#include <memory>
11-
#include <ranges> // IWYU pragma: keep
1211
#include <span>
1312
#include <type_traits>
1413
#include <unordered_map>
@@ -107,10 +106,11 @@ inline void copy_to_padded_buffer(const std::span<const Tin> src,
107106
assert(src.size() <= dst.size());
108107

109108
// Copy data from source to destination
110-
std::ranges::copy(src, dst.begin());
109+
std::copy(src.begin(), src.end(), dst.begin());
111110

112111
// Fill the remaining part of the destination with zeros
113-
std::ranges::fill(dst.subspan(src.size()), 0);
112+
auto dst_ = dst.subspan(src.size());
113+
std::fill(dst_.begin(), dst_.end(), 0);
114114
}
115115

116116
// static inline void elementwise_multiply(const fftw_complex *a,
@@ -545,7 +545,8 @@ void oaconvolve_fftw(std::span<const T> input, std::span<const T> kernel,
545545
assert(input.size() == output.size());
546546
plan.oaconvolve_same(input, kernel, output);
547547
} else {
548-
static_assert(Mode == ConvMode::Full || Mode == ConvMode::Same, "Unsupported mode.");
548+
static_assert(Mode == ConvMode::Full || Mode == ConvMode::Same,
549+
"Unsupported mode.");
549550
}
550551
}
551552

0 commit comments

Comments
 (0)