From bb4dd8289b351fae6b55e303f189127a394a1edd Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Mon, 26 Aug 2013 08:15:55 -0400 Subject: Imported Upstream version 1.51.0 --- boost/fusion/algorithm/transformation/replace_if.hpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'boost/fusion/algorithm/transformation/replace_if.hpp') diff --git a/boost/fusion/algorithm/transformation/replace_if.hpp b/boost/fusion/algorithm/transformation/replace_if.hpp index 29913436e3..39b9009a79 100644 --- a/boost/fusion/algorithm/transformation/replace_if.hpp +++ b/boost/fusion/algorithm/transformation/replace_if.hpp @@ -9,6 +9,7 @@ #include #include +#include #include #include @@ -24,7 +25,12 @@ namespace boost { namespace fusion } template - inline typename result_of::replace_if::type + inline + typename + enable_if< + traits::is_sequence + , typename result_of::replace_if::type + >::type replace_if(Sequence const& seq, F pred, T const& new_value) { typedef typename result_of::replace_if::type result; -- cgit v1.2.3