Skip to content

Commit

Permalink
remove accidentally used C++23 feature
Browse files Browse the repository at this point in the history
  • Loading branch information
kwsp committed Jan 4, 2025
1 parent d7628dc commit f3f49ed
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions include/fftconv/fftconv.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
#include <complex>
#include <fftconv/fftw.hpp>
#include <memory>
#include <ranges> // IWYU pragma: keep
#include <span>
#include <type_traits>
#include <unordered_map>
Expand Down Expand Up @@ -107,10 +106,11 @@ inline void copy_to_padded_buffer(const std::span<const Tin> src,
assert(src.size() <= dst.size());

// Copy data from source to destination
std::ranges::copy(src, dst.begin());
std::copy(src.begin(), src.end(), dst.begin());

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

// static inline void elementwise_multiply(const fftw_complex *a,
Expand Down Expand Up @@ -545,7 +545,8 @@ void oaconvolve_fftw(std::span<const T> input, std::span<const T> kernel,
assert(input.size() == output.size());
plan.oaconvolve_same(input, kernel, output);
} else {
static_assert(Mode == ConvMode::Full || Mode == ConvMode::Same, "Unsupported mode.");
static_assert(Mode == ConvMode::Full || Mode == ConvMode::Same,
"Unsupported mode.");
}
}

Expand Down

0 comments on commit f3f49ed

Please sign in to comment.