From 74c0d5d0ecd0c9d8a31b9a642432a5171d005df3 Mon Sep 17 00:00:00 2001 From: Charly Chevalier Date: Tue, 10 Nov 2015 10:55:13 +0100 Subject: [PATCH] Fix fusion::at, N> for C array types --- include/boost/fusion/container/vector/detail/value_at_impl.hpp | 2 +- include/boost/fusion/container/vector/vector.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/fusion/container/vector/detail/value_at_impl.hpp b/include/boost/fusion/container/vector/detail/value_at_impl.hpp index 3d748afd..7d134054 100644 --- a/include/boost/fusion/container/vector/detail/value_at_impl.hpp +++ b/include/boost/fusion/container/vector/detail/value_at_impl.hpp @@ -47,7 +47,7 @@ namespace boost { namespace fusion struct apply { typedef typename boost::remove_cv::type seq; - typedef decltype(seq::template value_at_impl(boost::declval())) type; + typedef typename decltype(seq::template value_at_impl(boost::declval()))::type type; }; }; } diff --git a/include/boost/fusion/container/vector/vector.hpp b/include/boost/fusion/container/vector/vector.hpp index fb6a6f8b..845a019e 100644 --- a/include/boost/fusion/container/vector/vector.hpp +++ b/include/boost/fusion/container/vector/vector.hpp @@ -272,7 +272,7 @@ namespace boost { namespace fusion template static BOOST_FUSION_GPU_ENABLED - U value_at_impl(store*); + mpl::identity value_at_impl(store*); }; template