From 0e40abca99b6f89fdd824ec899b15811dd391cc4 Mon Sep 17 00:00:00 2001 From: John Fletcher Date: Thu, 12 Mar 2015 15:56:56 +0000 Subject: [PATCH] function/lazy_prelude.hpp Take out apply0 --- .../boost/phoenix/function/lazy_prelude.hpp | 30 +------------------ 1 file changed, 1 insertion(+), 29 deletions(-) diff --git a/include/boost/phoenix/function/lazy_prelude.hpp b/include/boost/phoenix/function/lazy_prelude.hpp index 1094ea3..15f7cb4 100644 --- a/include/boost/phoenix/function/lazy_prelude.hpp +++ b/include/boost/phoenix/function/lazy_prelude.hpp @@ -234,32 +234,6 @@ namespace boost { }; - // This will apply f() at least once. - struct Apply0 { - - template - struct result; - - template - struct result - { - // Need result type from F - typedef typename F::result_type type; - }; - - template - typename result::type operator()(N n, const F &f, - reuser2 r = NIL ) const { - if ( n <= 1 ) - return f()(); - else { - A0 a1 = r( Apply(), n-1, f)(); - return f()(); - } - } - - }; - struct Odd { template struct result; @@ -295,12 +269,10 @@ namespace boost { } typedef boost::phoenix::function Pow; typedef boost::phoenix::function Apply; - typedef boost::phoenix::function Apply0; typedef boost::phoenix::function Odd; - typedef boost::phoenix::function Even; + typedef boost::phoenix::function Even; Pow pow; Apply apply; - Apply0 apply0; Odd odd; Even even;