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
2015-11-11 10:02:52 +08:00
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
};
};
}

View File

@@ -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>