From d4f11a0537ad478701203901f0d8882247a645ba Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Fri, 7 Jan 2011 01:17:40 +0000 Subject: [PATCH] Applied patch; refs #2823; will merge to release once tests cycle [SVN r67745] --- 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..d6b8738d 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::value_of::type v = *f; + return type(v, next_build_cons::call(fusion::next(f), l)); } };