Skip to content

Commit

Permalink
drops init list support from takewhile
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhaining committed Apr 8, 2016
1 parent 009930d commit 3c2e6ad
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions takewhile.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#include <utility>
#include <iterator>
#include <initializer_list>

namespace iter {
namespace impl {
Expand All @@ -16,9 +15,6 @@ namespace iter {
template <typename FilterFunc, typename Container>
impl::Taker<FilterFunc, Container> takewhile(FilterFunc, Container&&);

template <typename FilterFunc, typename T>
impl::Taker<FilterFunc, std::initializer_list<T>> takewhile(
FilterFunc, std::initializer_list<T>);
}

template <typename FilterFunc, typename Container>
Expand All @@ -29,10 +25,6 @@ class iter::impl::Taker {

friend Taker iter::takewhile<FilterFunc, Container>(FilterFunc, Container&&);

template <typename FF, typename T>
friend Taker<FF, std::initializer_list<T>> iter::takewhile(
FF, std::initializer_list<T>);

Taker(FilterFunc in_filter_func, Container&& in_container)
: container(std::forward<Container>(in_container)),
filter_func(in_filter_func) {}
Expand Down Expand Up @@ -121,10 +113,4 @@ iter::impl::Taker<FilterFunc, Container> iter::takewhile(
return {filter_func, std::forward<Container>(container)};
}

template <typename FilterFunc, typename T>
iter::impl::Taker<FilterFunc, std::initializer_list<T>> iter::takewhile(
FilterFunc filter_func, std::initializer_list<T> il) {
return {filter_func, std::move(il)};
}

#endif

0 comments on commit 3c2e6ad

Please sign in to comment.