Merge pull request #115 from NumScale/fix-fast-vector-value_at

Fix fusion::at<vector<...>, N> for C array types
This commit is contained in:
Joel de Guzman committed 2015-11-11 10:02:52 +08:00
commit bb8b5afc7f
2 files changed
+2 -2

No files matched your search

@@ -47,7 +47,7 @@ namespace boost { namespace fusion
struct apply
{
typedef typename boost::remove_cv<Sequence>::type seq;
typedef decltype(seq::template value_at_impl<N::value>(boost::declval<seq*>())) type;
typedef typename mpl::identity<decltype(seq::template value_at_impl<N::value>(boost::declval<seq*>()))>::type::type type;
};
};
}
@@ -272,7 +272,7 @@ namespace boost { namespace fusion
template <std::size_t N, typename U>
static BOOST_FUSION_GPU_ENABLED
U value_at_impl(store<N, U>*);
mpl::identity<U> value_at_impl(store<N, U>*);
};
template <typename V, typename... T>