Skip to content

Commit

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

#include <cassert>
#include <memory>
#include <initializer_list>
#include <utility>
#include <iterator>
#include <type_traits>
Expand All @@ -19,9 +18,6 @@ namespace iter {
template <typename Container>
impl::Powersetter<Container> powerset(Container&&);

template <typename T>
impl::Powersetter<std::initializer_list<T>> powerset(
std::initializer_list<T>);
}

template <typename Container>
Expand All @@ -31,9 +27,6 @@ class iter::impl::Powersetter {
using CombinatorType = decltype(combinations(std::declval<Container&>(), 0));

friend Powersetter iter::powerset<Container>(Container&&);
template <typename T>
friend Powersetter<std::initializer_list<T>> iter::powerset(
std::initializer_list<T>);

Powersetter(Container&& in_container)
: container(std::forward<Container>(in_container)) {}
Expand Down Expand Up @@ -110,10 +103,4 @@ iter::impl::Powersetter<Container> iter::powerset(Container&& container) {
return {std::forward<Container>(container)};
}

template <typename T>
iter::impl::Powersetter<std::initializer_list<T>> iter::powerset(
std::initializer_list<T> il) {
return {std::move(il)};
}

#endif

0 comments on commit 5f8b444

Please sign in to comment.