forked from boostorg/fusion
Merge remote-tracking branch 'origin/develop' into feature/sfinae-friendly-result_of
This commit is contained in:
@ -25,13 +25,13 @@ namespace boost { namespace fusion { namespace detail
|
||||
typedef typename remove_reference<Wanted>::type pointee;
|
||||
|
||||
template <typename T>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline pointee * do_get_pointer(T &, pointee * x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
template <typename T>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline pointee * do_get_pointer(T & x, void const *)
|
||||
{
|
||||
return get_pointer(x);
|
||||
@ -39,20 +39,20 @@ namespace boost { namespace fusion { namespace detail
|
||||
|
||||
public:
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline pointee * get(pointee * x)
|
||||
{
|
||||
return x;
|
||||
}
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline pointee * get(pointee & x)
|
||||
{
|
||||
return boost::addressof(x);
|
||||
}
|
||||
|
||||
template <typename T>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline pointee * get(T & x)
|
||||
{
|
||||
return do_get_pointer(x, boost::addressof(x));
|
||||
|
@ -132,7 +132,7 @@ namespace boost { namespace fusion
|
||||
typedef typename boost::add_reference<qualified_type>::type
|
||||
result_type;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type call(T C::* f, Sequence & s)
|
||||
{
|
||||
typename result_of::front<Sequence>::type c = fusion::front(s);
|
||||
@ -161,7 +161,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <typename Function, class Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::invoke<Function,Sequence>::type
|
||||
invoke(Function f, Sequence & s)
|
||||
{
|
||||
@ -171,7 +171,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <typename Function, class Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::invoke<Function,Sequence const>::type
|
||||
invoke(Function f, Sequence const & s)
|
||||
{
|
||||
@ -208,7 +208,7 @@ namespace boost { namespace fusion
|
||||
#if N > 0
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -218,7 +218,7 @@ namespace boost { namespace fusion
|
||||
|
||||
#else
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & /*s*/)
|
||||
{
|
||||
@ -239,7 +239,7 @@ namespace boost { namespace fusion
|
||||
#if N > 0
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -249,7 +249,7 @@ namespace boost { namespace fusion
|
||||
|
||||
#else
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & /*s*/)
|
||||
{
|
||||
@ -270,7 +270,7 @@ namespace boost { namespace fusion
|
||||
typedef typename ft::result_type<Function>::type result_type;
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -306,7 +306,7 @@ namespace boost { namespace fusion
|
||||
#if N > 0
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -318,7 +318,7 @@ namespace boost { namespace fusion
|
||||
#else
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & /*s*/)
|
||||
{
|
||||
@ -341,7 +341,7 @@ namespace boost { namespace fusion
|
||||
#if N > 0
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -353,7 +353,7 @@ namespace boost { namespace fusion
|
||||
#else
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & /*s*/)
|
||||
{
|
||||
@ -375,7 +375,7 @@ namespace boost { namespace fusion
|
||||
typedef typename ft::result_type<Function>::type result_type;
|
||||
|
||||
template <typename F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <class Function, class Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::invoke_function_object<Function,Sequence>::type
|
||||
invoke_function_object(Function f, Sequence & s)
|
||||
{
|
||||
@ -85,7 +85,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <class Function, class Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::invoke_function_object<Function,Sequence const>::type
|
||||
invoke_function_object(Function f, Sequence const & s)
|
||||
{
|
||||
@ -123,7 +123,7 @@ namespace boost { namespace fusion
|
||||
#if N > 0
|
||||
|
||||
template <class F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -135,7 +135,7 @@ namespace boost { namespace fusion
|
||||
#else
|
||||
|
||||
template <class F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & /*s*/)
|
||||
{
|
||||
@ -166,7 +166,7 @@ namespace boost { namespace fusion
|
||||
#if N > 0
|
||||
|
||||
template <class F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & s)
|
||||
{
|
||||
@ -182,7 +182,7 @@ namespace boost { namespace fusion
|
||||
#else
|
||||
|
||||
template <class F>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline result_type
|
||||
call(F & f, Sequence & /*s*/)
|
||||
{
|
||||
|
@ -77,7 +77,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <typename Function, class Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::invoke_procedure<Function, Sequence>::type
|
||||
invoke_procedure(Function f, Sequence & s)
|
||||
{
|
||||
@ -87,7 +87,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <typename Function, class Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline typename result_of::invoke_procedure<Function, Sequence const>::type
|
||||
invoke_procedure(Function f, Sequence const & s)
|
||||
{
|
||||
@ -116,7 +116,7 @@ namespace boost { namespace fusion
|
||||
|
||||
#if N > 0
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline void call(Function & f, Sequence & s)
|
||||
{
|
||||
f(BOOST_PP_ENUM(N,M,~));
|
||||
@ -124,7 +124,7 @@ namespace boost { namespace fusion
|
||||
|
||||
#else
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline void call(Function & f, Sequence & /*s*/)
|
||||
{
|
||||
f();
|
||||
@ -140,7 +140,7 @@ namespace boost { namespace fusion
|
||||
{
|
||||
typedef void result_type;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline void call(Function & f, Sequence & s)
|
||||
{
|
||||
(that_ptr<typename mpl::front<
|
||||
@ -164,7 +164,7 @@ namespace boost { namespace fusion
|
||||
|
||||
#if N > 0
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline void call(Function & f, Sequence & s)
|
||||
{
|
||||
typedef typename result_of::begin<Sequence>::type I0;
|
||||
@ -174,7 +174,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
#else
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline void call(Function & f, Sequence & /*s*/)
|
||||
{
|
||||
f();
|
||||
@ -190,7 +190,7 @@ namespace boost { namespace fusion
|
||||
{
|
||||
typedef void result_type;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static inline void call(Function & f, Sequence & s)
|
||||
{
|
||||
typedef typename result_of::begin<Sequence>::type I0;
|
||||
|
Reference in New Issue
Block a user