Skip to content

Commit

Permalink
drops init list support from sliding_window
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaining committed Apr 8, 2016
1 parent 3c2e6ad commit 1497c42
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions sliding_window.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ namespace iter {
template <typename Container>
impl::WindowSlider<Container> sliding_window(Container&&, std::size_t);

template <typename T>
impl::WindowSlider<std::initializer_list<T>> sliding_window(
std::initializer_list<T>, std::size_t);
}

template <typename Container>
Expand All @@ -30,9 +27,6 @@ class iter::impl::WindowSlider {

friend WindowSlider iter::sliding_window<Container>(Container&&, std::size_t);

template <typename T>
friend WindowSlider<std::initializer_list<T>> iter::sliding_window(
std::initializer_list<T>, std::size_t);

WindowSlider(Container&& in_container, std::size_t win_sz)
: container(std::forward<Container>(in_container)), window_size{win_sz} {}
Expand Down Expand Up @@ -107,10 +101,4 @@ iter::impl::WindowSlider<Container> iter::sliding_window(
return {std::forward<Container>(container), window_size};
}

template <typename T>
iter::impl::WindowSlider<std::initializer_list<T>> iter::sliding_window(
std::initializer_list<T> il, std::size_t window_size) {
return {std::move(il), window_size};
}

#endif

0 comments on commit 1497c42

Please sign in to comment.