From d546e0d1172ee138971ced523a97121b495a7ba1 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Thu, 5 Feb 2015 13:54:01 +0100 Subject: Reimplemented `removeMultiplesOf` in terms of a partial function application --- example/prime/prime.cc | 15 ++++----------- 1 file 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 - using predicate_wrapper = isMultipleOf; - - public: - typedef typename tav::Remove< - predicate_wrapper, - Candidates - >::type type; -}; +using removeMultiplesOf = tav::Remove< + tav::Apply::template single_type, + Candidates +>; template struct Sieve { -- cgit v1.2.3