Skip to content

Commit

Permalink
Update padder.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
mohabouje committed Aug 27, 2018
1 parent 0b1227e commit a278390
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions include/easy/dsp/preprocessing/padder.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,11 @@ namespace easy { namespace dsp {
const auto output_size = std::distance(first_out, last_out);
meta::expects(output_size >= input_size, "Output size should be greather or equal than the input size");
std::copy(first, last, first_out);
std::generate(meta::advance(first_out, input_size), last, generator);
std::generate(meta::advance(first_out, input_size), last_out, generator);
};

template <typename InputIterator, typename OutputIterator>
template <typename InputIterator,
typename OutputIterator>
constexpr void padder(InputIterator first, InputIterator last, OutputIterator first_out, OutputIterator last_out,
typename std::iterator_traits<InputIterator>::value_type value) {
padder(first, last, first_out, last_out,
Expand Down

0 comments on commit a278390

Please sign in to comment.