diff options
-rw-r--r-- | example/prime/prime.cc | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/example/prime/prime.cc b/example/prime/prime.cc index 9d10ff4..93b7db5 100644 --- a/example/prime/prime.cc +++ b/example/prime/prime.cc @@ -24,17 +24,10 @@ template < typename Candidates, typename Base > -class removeMultiplesOf { - private: - template <typename Element> - using predicate_wrapper = isMultipleOf<Element, Base>; - - public: - typedef typename tav::Remove< - predicate_wrapper, - Candidates - >::type type; -}; +using removeMultiplesOf = tav::Remove< + tav::Apply<isMultipleOf, tav::_0, Base>::template single_type, + Candidates +>; template <typename Candidates> struct Sieve { |