mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-29 12:07:36 +02:00
Fixed vector compile error with C-style array
This commit is contained in:
@ -23,6 +23,7 @@
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
#include <boost/fusion/container/vector/vector_fwd.hpp>
|
#include <boost/fusion/container/vector/vector_fwd.hpp>
|
||||||
#include <boost/type_traits/declval.hpp>
|
#include <boost/type_traits/declval.hpp>
|
||||||
|
#include <boost/mpl/identity.hpp>
|
||||||
|
|
||||||
namespace boost { namespace fusion
|
namespace boost { namespace fusion
|
||||||
{
|
{
|
||||||
@ -35,7 +36,7 @@ namespace boost { namespace fusion
|
|||||||
|
|
||||||
template <std::size_t N, typename U>
|
template <std::size_t N, typename U>
|
||||||
static inline BOOST_FUSION_GPU_ENABLED
|
static inline BOOST_FUSION_GPU_ENABLED
|
||||||
U value_at_impl(store<N, U> const volatile*);
|
mpl::identity<U> value_at_impl(store<N, U> const volatile*);
|
||||||
}
|
}
|
||||||
|
|
||||||
namespace extension
|
namespace extension
|
||||||
@ -49,8 +50,8 @@ namespace boost { namespace fusion
|
|||||||
template <typename Sequence, typename N>
|
template <typename Sequence, typename N>
|
||||||
struct apply
|
struct apply
|
||||||
{
|
{
|
||||||
typedef
|
typedef typename
|
||||||
decltype(vector_detail::value_at_impl<N::value>(boost::declval<Sequence*>()))
|
decltype(vector_detail::value_at_impl<N::value>(boost::declval<Sequence*>()))::type
|
||||||
type;
|
type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user