From db1c2b1133e73d187f64b16e8d6413632dcd5d71 Mon Sep 17 00:00:00 2001 From: John Fletcher Date: Mon, 2 Mar 2015 10:25:22 +0000 Subject: [PATCH] function/lazy_list.hpp remove reference in one location. --- include/boost/phoenix/function/lazy_list.hpp | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/include/boost/phoenix/function/lazy_list.hpp b/include/boost/phoenix/function/lazy_list.hpp index 6e4f50e..4c2c047 100644 --- a/include/boost/phoenix/function/lazy_list.hpp +++ b/include/boost/phoenix/function/lazy_list.hpp @@ -864,14 +864,6 @@ public: { return f; } - /* - template - typename boost::phoenix::function operator() - (boost::phoenix::function const& f) const - { - return f; - } - */ }; @@ -1196,8 +1188,9 @@ bool operator<( a_unique_type_for_nil, const list& b ) { }; template struct ConsHelp1 { + typedef typename boost::remove_reference::type TT; typedef typename L::force_result_type type; - static type go( const T& x, const L& l ) { + static type go( const TT& x, const L& l ) { return type(x,l); } };