From 94f5406936ab6ddebe42608fc30f995f6e9ad078 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Sat, 8 Jan 2011 18:38:08 +0000 Subject: [PATCH] Merging fixes to release; fixes #2294 fixes #4918 fixes #3645 refs #2823 refs #1427 refs #2893 [SVN r67792] --- include/boost/fusion/container/list/detail/build_cons.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/boost/fusion/container/list/detail/build_cons.hpp b/include/boost/fusion/container/list/detail/build_cons.hpp index befbd4e9..8e6276e6 100644 --- a/include/boost/fusion/container/list/detail/build_cons.hpp +++ b/include/boost/fusion/container/list/detail/build_cons.hpp @@ -48,7 +48,8 @@ namespace boost { namespace fusion { namespace detail static type call(First const& f, Last const& l) { - return type(*f, next_build_cons::call(fusion::next(f), l)); + typename result_of::deref::type v = *f; + return type(v, next_build_cons::call(fusion::next(f), l)); } };