mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-31 21:14:43 +02:00
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:
@@ -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>
|
||||
|
Reference in New Issue
Block a user