More constexpr and noexcept support.

Note 1: Forwarding functions are specified as a C++14 constexpr since
std::forward is not a constexpr within C++11.

Note 2: Though I'm not sure why it doesn't compile, some declarations
are specified as a C++14 constexpr or non-constexpr.

Note 3: Boost.Tuple adaptation and TR1-based tuple implementations are
not constexpr.
This commit is contained in:
Kohei Takahashi
2015-03-03 02:21:02 +09:00
parent d7c918e36f
commit 2114bfca6c
280 changed files with 1107 additions and 935 deletions

View File

@ -17,6 +17,12 @@
#include <boost/mpl/if.hpp> #include <boost/mpl/if.hpp>
#include <boost/type_traits/is_const.hpp> #include <boost/type_traits/is_const.hpp>
#if defined(BOOST_GCC)
#define BOOST_FUSION_ADT_CONSTEXPR BOOST_CXX14_CONSTEXPR
#else
#define BOOST_FUSION_ADT_CONSTEXPR BOOST_CONSTEXPR
#endif
#define BOOST_FUSION_ADAPT_ADT_GET_IDENTITY_TEMPLATE_IMPL(TEMPLATE_PARAMS_SEQ) \ #define BOOST_FUSION_ADAPT_ADT_GET_IDENTITY_TEMPLATE_IMPL(TEMPLATE_PARAMS_SEQ) \
typename detail::get_identity< \ typename detail::get_identity< \
lvalue \ lvalue \
@ -40,7 +46,7 @@
> \ > \
{ \ { \
template<class Val> \ template<class Val> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static void \ static void \
boost_fusion_adapt_adt_impl_set( \ boost_fusion_adapt_adt_impl_set( \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj, \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj, \
@ -49,7 +55,7 @@
BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 3, ATTRIBUTE); \ BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 3, ATTRIBUTE); \
} \ } \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_FUSION_ADT_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 0, ATTRIBUTE) \ static BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 0, ATTRIBUTE) \
boost_fusion_adapt_adt_impl_get( \ boost_fusion_adapt_adt_impl_get( \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj) \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& obj) \
@ -57,7 +63,7 @@
return BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 2, ATTRIBUTE); \ return BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 2, ATTRIBUTE); \
} \ } \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_FUSION_ADT_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) \ static BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) \
boost_fusion_adapt_adt_impl_get( \ boost_fusion_adapt_adt_impl_get( \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& obj) \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& obj) \
@ -77,14 +83,14 @@
{ \ { \
typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) type; \ typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 1, ATTRIBUTE) type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
explicit \ explicit \
adt_attribute_proxy( \ adt_attribute_proxy( \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& o) \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ) const& o) \
: obj(&o) \ : obj(&o) \
{} \ {} \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_FUSION_ADT_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
type get() const \ type get() const \
{ \ { \
return access::adt_attribute_access< \ return access::adt_attribute_access< \
@ -93,7 +99,7 @@
>::boost_fusion_adapt_adt_impl_get(*obj); \ >::boost_fusion_adapt_adt_impl_get(*obj); \
} \ } \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_FUSION_ADT_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
operator type() const \ operator type() const \
{ \ { \
return get(); \ return get(); \
@ -113,7 +119,7 @@
{ \ { \
typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 0, ATTRIBUTE) type; \ typedef BOOST_PP_TUPLE_ELEM(ATTRIBUTE_TUPEL_SIZE, 0, ATTRIBUTE) type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
explicit \ explicit \
adt_attribute_proxy( \ adt_attribute_proxy( \
BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& o) \ BOOST_FUSION_ADAPT_STRUCT_UNPACK_NAME(NAME_SEQ)& o) \
@ -121,7 +127,7 @@
{} \ {} \
\ \
template<class Val> \ template<class Val> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
adt_attribute_proxy& \ adt_attribute_proxy& \
operator=(Val const& val) \ operator=(Val const& val) \
{ \ { \
@ -132,7 +138,7 @@
return *this; \ return *this; \
} \ } \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_FUSION_ADT_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
type get() const \ type get() const \
{ \ { \
return access::adt_attribute_access< \ return access::adt_attribute_access< \
@ -141,7 +147,7 @@
>::boost_fusion_adapt_adt_impl_get(*obj); \ >::boost_fusion_adapt_adt_impl_get(*obj); \
} \ } \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_FUSION_ADT_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
operator type() const \ operator type() const \
{ \ { \
return get(); \ return get(); \
@ -181,7 +187,7 @@
> \ > \
type; \ type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type \ static type \
call(Seq& obj) \ call(Seq& obj) \
{ \ { \

View File

@ -30,7 +30,7 @@ namespace boost { namespace fusion
{ {
// Overload as_const() to unwrap adt_attribute_proxy. // Overload as_const() to unwrap adt_attribute_proxy.
template <typename T, int N, bool Const> template <typename T, int N, bool Const>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename adt_attribute_proxy<T, N, Const>::type as_const(const adt_attribute_proxy<T, N, Const>& proxy) typename adt_attribute_proxy<T, N, Const>::type as_const(const adt_attribute_proxy<T, N, Const>& proxy)
{ {
return proxy.get(); return proxy.get();

View File

@ -27,7 +27,7 @@ namespace boost { namespace fusion { namespace extension
add_reference<typename remove_extent<Seq>::type>::type add_reference<typename remove_extent<Seq>::type>::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {

View File

@ -31,7 +31,7 @@ namespace boost { namespace fusion { namespace extension
> >
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {

View File

@ -29,7 +29,7 @@ namespace boost { namespace fusion { namespace extension
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(It const& it) call(It const& it)
{ {

View File

@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace extension
> >
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {

View File

@ -32,7 +32,7 @@ namespace boost { namespace fusion
typedef mpl::int_<Pos> index; typedef mpl::int_<Pos> index;
typedef Array array_type; typedef Array array_type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
array_iterator(Array& a) array_iterator(Array& a)
: array(a) {} : array(a) {}
@ -57,7 +57,7 @@ namespace boost { namespace fusion
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const & it) call(Iterator const & it)
{ {
@ -72,7 +72,7 @@ namespace boost { namespace fusion
typedef typename Iterator::array_type array_type; typedef typename Iterator::array_type array_type;
typedef array_iterator<array_type, index::value + N::value> type; typedef array_iterator<array_type, index::value + N::value> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& i) call(Iterator const& i)
{ {
@ -95,7 +95,7 @@ namespace boost { namespace fusion
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(I1 const&, I2 const&) call(I1 const&, I2 const&)
{ {

View File

@ -33,7 +33,7 @@ namespace boost { namespace fusion {
typename Sequence::const_reference, typename Sequence::const_reference,
typename Sequence::reference>::type type; typename Sequence::reference>::type type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& seq) call(Sequence& seq)
{ {

View File

@ -28,7 +28,7 @@ namespace boost { namespace fusion {
{ {
typedef array_iterator<Sequence, 0> type; typedef array_iterator<Sequence, 0> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& v) call(Sequence& v)
{ {

View File

@ -28,7 +28,7 @@ namespace boost { namespace fusion {
{ {
typedef array_iterator<Sequence, Sequence::static_size> type; typedef array_iterator<Sequence, Sequence::static_size> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& v) call(Sequence& v)
{ {

View File

@ -40,7 +40,7 @@ namespace boost { namespace fusion
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& seq) call(Sequence& seq)
{ {

View File

@ -27,7 +27,7 @@ namespace boost { namespace fusion
{ {
typedef std_tuple_iterator<Sequence, 0> type; typedef std_tuple_iterator<Sequence, 0> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& v) call(Sequence& v)
{ {

View File

@ -27,7 +27,7 @@ namespace boost { namespace fusion { namespace detail
struct build_std_tuple<First, Last, true> struct build_std_tuple<First, Last, true>
{ {
typedef std::tuple<> type; typedef std::tuple<> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const&, Last const&) call(First const&, Last const&)
{ {
@ -61,14 +61,14 @@ namespace boost { namespace fusion { namespace detail
typedef std::tuple<T, Rest...> type; typedef std::tuple<T, Rest...> type;
template <int ...I> template <int ...I>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
indexed_call(T const& first, std::tuple<Rest...> const& rest, indexed_tuple<I...>) indexed_call(T const& first, std::tuple<Rest...> const& rest, indexed_tuple<I...>)
{ {
return type(first, std::get<I>(rest)...); return type(first, std::get<I>(rest)...);
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(T const& first, std::tuple<Rest...> const& rest) call(T const& first, std::tuple<Rest...> const& rest)
{ {
@ -91,7 +91,7 @@ namespace boost { namespace fusion { namespace detail
typedef typename push_front::type type; typedef typename push_front::type type;
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const& f, Last const& l) call(First const& f, Last const& l)
{ {

View File

@ -34,7 +34,7 @@ namespace boost { namespace fusion
typedef typename gen::type type; typedef typename gen::type type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& seq) call(Sequence& seq)
{ {

View File

@ -31,7 +31,7 @@ namespace boost { namespace fusion
static int const size = std::tuple_size<seq_type>::value; static int const size = std::tuple_size<seq_type>::value;
typedef std_tuple_iterator<Sequence, size> type; typedef std_tuple_iterator<Sequence, size> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& v) call(Sequence& v)
{ {

View File

@ -36,7 +36,8 @@ namespace boost { namespace fusion
typename add_const<Tuple>::type, Index> typename add_const<Tuple>::type, Index>
identity; identity;
BOOST_FUSION_GPU_ENABLED explicit std_tuple_iterator(Tuple& tuple) BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit std_tuple_iterator(Tuple& tuple)
: tuple(tuple) {} : tuple(tuple) {}
Tuple& tuple; Tuple& tuple;
@ -58,7 +59,7 @@ namespace boost { namespace fusion
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& iter) call(Iterator const& iter)
{ {
@ -73,7 +74,7 @@ namespace boost { namespace fusion
typedef typename Iterator::tuple_type tuple_type; typedef typename Iterator::tuple_type tuple_type;
typedef std_tuple_iterator<tuple_type, index+N::value> type; typedef std_tuple_iterator<tuple_type, index+N::value> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& i) call(Iterator const& i)
{ {
@ -96,7 +97,7 @@ namespace boost { namespace fusion
{ {
typedef mpl::int_<Last::index-First::index> type; typedef mpl::int_<Last::index-First::index> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const&, Last const&) call(First const&, Last const&)
{ {

View File

@ -138,7 +138,7 @@
>::type \ >::type \
type; \ type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type \ static type \
call(Seq& seq) \ call(Seq& seq) \
{ \ { \
@ -158,7 +158,7 @@
{ \ { \
typedef char const* type; \ typedef char const* type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type \ static type \
call() \ call() \
{ \ { \

View File

@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace extension
> >
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {
@ -57,7 +57,7 @@ namespace boost { namespace fusion { namespace extension
> >
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {

View File

@ -62,7 +62,7 @@
ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \ ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \
\ \
template<typename Seq> \ template<typename Seq> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
self_type& \ self_type& \
operator=(Seq const& seq) \ operator=(Seq const& seq) \
{ \ { \
@ -121,7 +121,7 @@
ATTRIBUTE_TUPEL_SIZE, \ ATTRIBUTE_TUPEL_SIZE, \
ATTRIBUTES_SEQ) \ ATTRIBUTES_SEQ) \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME() \ NAME() \
: BOOST_PP_SEQ_FOR_EACH_I_R( \ : BOOST_PP_SEQ_FOR_EACH_I_R( \
1, \ 1, \
@ -130,7 +130,7 @@
ATTRIBUTES_SEQ) \ ATTRIBUTES_SEQ) \
{} \ {} \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(self_type const& other_self) \ NAME(self_type const& other_self) \
: BOOST_PP_SEQ_FOR_EACH_I_R( \ : BOOST_PP_SEQ_FOR_EACH_I_R( \
1, \ 1, \
@ -140,7 +140,7 @@
{} \ {} \
\ \
template<typename Seq> \ template<typename Seq> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(Seq const& seq \ NAME(Seq const& seq \
BOOST_PP_IF( \ BOOST_PP_IF( \
BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(ATTRIBUTES_SEQ)), \ BOOST_PP_DEC(BOOST_PP_SEQ_SIZE(ATTRIBUTES_SEQ)), \
@ -160,7 +160,7 @@
#define BOOST_FUSION_DEFINE_STRUCT_CTOR_1( \ #define BOOST_FUSION_DEFINE_STRUCT_CTOR_1( \
NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \ NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
explicit \ explicit \
NAME(boost::call_traits< \ NAME(boost::call_traits< \
BOOST_PP_TUPLE_ELEM( \ BOOST_PP_TUPLE_ELEM( \
@ -173,7 +173,7 @@
#define BOOST_FUSION_DEFINE_TPL_STRUCT_CTOR_1( \ #define BOOST_FUSION_DEFINE_TPL_STRUCT_CTOR_1( \
TEMPLATE_PARAMS_SEQ, NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \ TEMPLATE_PARAMS_SEQ, NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
explicit \ explicit \
NAME(typename boost::call_traits< \ NAME(typename boost::call_traits< \
typename boost::fusion::detail::get_first_arg< \ typename boost::fusion::detail::get_first_arg< \
@ -210,7 +210,7 @@
#define BOOST_FUSION_DEFINE_TPL_STRUCT_CTOR_N( \ #define BOOST_FUSION_DEFINE_TPL_STRUCT_CTOR_N( \
TEMPLATE_PARAMS_SEQ, NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \ TEMPLATE_PARAMS_SEQ, NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(BOOST_PP_SEQ_FOR_EACH_I_R( \ NAME(BOOST_PP_SEQ_FOR_EACH_I_R( \
1, \ 1, \
BOOST_FUSION_DEFINE_TPL_STRUCT_CTOR_ARG_I, \ BOOST_FUSION_DEFINE_TPL_STRUCT_CTOR_ARG_I, \
@ -238,7 +238,7 @@
#define BOOST_FUSION_DEFINE_STRUCT_CTOR_N( \ #define BOOST_FUSION_DEFINE_STRUCT_CTOR_N( \
NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \ NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(BOOST_PP_SEQ_FOR_EACH_I_R( \ NAME(BOOST_PP_SEQ_FOR_EACH_I_R( \
1, \ 1, \
BOOST_FUSION_DEFINE_STRUCT_CTOR_ARG_I, \ BOOST_FUSION_DEFINE_STRUCT_CTOR_ARG_I, \
@ -280,12 +280,12 @@
NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \ NAME, ATTRIBUTES_SEQ, ATTRIBUTE_TUPEL_SIZE) \
\ \
template<typename Seq> \ template<typename Seq> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(Seq const&) \ NAME(Seq const&) \
{} \ {} \
\ \
template<typename Seq> \ template<typename Seq> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
self_type& \ self_type& \
operator=(Seq const& seq) \ operator=(Seq const& seq) \
{ \ { \

View File

@ -66,6 +66,7 @@
#define BOOST_FUSION_IGNORE_2(ARG1, ARG2) #define BOOST_FUSION_IGNORE_2(ARG1, ARG2)
#define BOOST_FUSION_MAKE_COPY_CONSTRUCTOR(NAME, ATTRIBUTES_SEQ) \ #define BOOST_FUSION_MAKE_COPY_CONSTRUCTOR(NAME, ATTRIBUTES_SEQ) \
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(BOOST_PP_SEQ_FOR_EACH_I( \ NAME(BOOST_PP_SEQ_FOR_EACH_I( \
BOOST_FUSION_MAKE_CONST_REF_PARAM, \ BOOST_FUSION_MAKE_CONST_REF_PARAM, \
~, \ ~, \
@ -113,7 +114,7 @@
struct deref<SPEC_TYPE, N> > \ struct deref<SPEC_TYPE, N> > \
{ \ { \
typedef typename boost_fusion_detail_Sq::t##N##_type TYPE_QUAL& type; \ typedef typename boost_fusion_detail_Sq::t##N##_type TYPE_QUAL& type; \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(CALL_ARG_TYPE, N> const& iter) \ static type call(CALL_ARG_TYPE, N> const& iter) \
{ \ { \
return iter.seq_.BOOST_PP_TUPLE_ELEM(2, 1, ATTRIBUTE); \ return iter.seq_.BOOST_PP_TUPLE_ELEM(2, 1, ATTRIBUTE); \
@ -163,7 +164,7 @@
typename boost_fusion_detail_Sq::t##N##_type& \ typename boost_fusion_detail_Sq::t##N##_type& \
>::type type; \ >::type type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_Sq& sq) \ static type call(boost_fusion_detail_Sq& sq) \
{ \ { \
return sq. BOOST_PP_TUPLE_ELEM(2, 1, ATTRIBUTE); \ return sq. BOOST_PP_TUPLE_ELEM(2, 1, ATTRIBUTE); \
@ -208,7 +209,7 @@
result_raw_type \ result_raw_type \
>::type type; \ >::type type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(iterator_raw_type const& iter) \ static type call(iterator_raw_type const& iter) \
{ \ { \
return boost::fusion::at_c<index>(iter.ref_vec); \ return boost::fusion::at_c<index>(iter.ref_vec); \
@ -336,7 +337,7 @@
typedef boost::mpl::int_<N> index; \ typedef boost::mpl::int_<N> index; \
typedef boost_fusion_detail_Seq sequence_type; \ typedef boost_fusion_detail_Seq sequence_type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
BOOST_FUSION_ITERATOR_NAME(NAME)(boost_fusion_detail_Seq& seq) \ BOOST_FUSION_ITERATOR_NAME(NAME)(boost_fusion_detail_Seq& seq) \
: seq_(seq) \ : seq_(seq) \
BOOST_FUSION_DEFINE_ITERATOR_WKND_INIT_LIST_ENTRIES( \ BOOST_FUSION_DEFINE_ITERATOR_WKND_INIT_LIST_ENTRIES( \
@ -359,7 +360,7 @@
boost_fusion_detail_It::index::value + 1 \ boost_fusion_detail_It::index::value + 1 \
> type; \ > type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_It const& it) \ static type call(boost_fusion_detail_It const& it) \
{ \ { \
return type(it.seq_); \ return type(it.seq_); \
@ -374,7 +375,7 @@
boost_fusion_detail_It::index::value - 1 \ boost_fusion_detail_It::index::value - 1 \
> type; \ > type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_It const& it) \ static type call(boost_fusion_detail_It const& it) \
{ \ { \
return type(it.seq_); \ return type(it.seq_); \
@ -392,7 +393,7 @@
typename boost_fusion_detail_It1::index \ typename boost_fusion_detail_It1::index \
>::type type; \ >::type type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_It1 const& /* it1 */, \ static type call(boost_fusion_detail_It1 const& /* it1 */, \
boost_fusion_detail_It2 const& /* it2 */) \ boost_fusion_detail_It2 const& /* it2 */) \
{ \ { \
@ -412,7 +413,7 @@
+ boost_fusion_detail_M::value \ + boost_fusion_detail_M::value \
> type; \ > type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_It const& it) \ static type call(boost_fusion_detail_It const& it) \
{ \ { \
return type(it.seq_); \ return type(it.seq_); \
@ -445,14 +446,14 @@
(NAME, ATTRIBUTES_SEQ) \ (NAME, ATTRIBUTES_SEQ) \
\ \
template <typename boost_fusion_detail_Seq> \ template <typename boost_fusion_detail_Seq> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(const boost_fusion_detail_Seq& rhs) \ NAME(const boost_fusion_detail_Seq& rhs) \
{ \ { \
boost::fusion::copy(rhs, *this); \ boost::fusion::copy(rhs, *this); \
} \ } \
\ \
template <typename boost_fusion_detail_Seq> \ template <typename boost_fusion_detail_Seq> \
BOOST_FUSION_GPU_ENABLED \ BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME& operator=(const boost_fusion_detail_Seq& rhs) \ NAME& operator=(const boost_fusion_detail_Seq& rhs) \
{ \ { \
boost::fusion::copy(rhs, *this); \ boost::fusion::copy(rhs, *this); \
@ -465,7 +466,7 @@
typedef BOOST_FUSION_ITERATOR_NAME(NAME)<boost_fusion_detail_Sq, 0> \ typedef BOOST_FUSION_ITERATOR_NAME(NAME)<boost_fusion_detail_Sq, 0> \
type; \ type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_Sq& sq) \ static type call(boost_fusion_detail_Sq& sq) \
{ \ { \
return type(sq); \ return type(sq); \
@ -480,7 +481,7 @@
ATTRIBUTES_SEQ_SIZE \ ATTRIBUTES_SEQ_SIZE \
> type; \ > type; \
\ \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
static type call(boost_fusion_detail_Sq& sq) \ static type call(boost_fusion_detail_Sq& sq) \
{ \ { \
return type(sq); \ return type(sq); \

View File

@ -28,9 +28,8 @@ namespace boost { namespace fusion { namespace extension
typedef typename impl::type type; typedef typename impl::type type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static static type
type
call(It const& it) call(It const& it)
{ {
return impl::call(*it.seq); return impl::call(*it.seq);

View File

@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace extension
> >
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {
@ -57,7 +57,7 @@ namespace boost { namespace fusion { namespace extension
> >
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Seq& seq) call(Seq& seq)
{ {

View File

@ -19,7 +19,7 @@
\ \
struct NAME \ struct NAME \
{ \ { \
BOOST_FUSION_GPU_ENABLED \ BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED \
NAME(WRAPPED_TYPE& in_obj) \ NAME(WRAPPED_TYPE& in_obj) \
: obj(in_obj) \ : obj(in_obj) \
{} \ {} \

View File

@ -34,14 +34,14 @@ namespace boost { namespace fusion
typedef typename result_of::end<Seq2>::type end2_type; typedef typename result_of::end<Seq2>::type end2_type;
template <typename I1, typename I2> template <typename I1, typename I2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void static void
call(I1 const&, I2 const&, mpl::true_) call(I1 const&, I2 const&, mpl::true_)
{ {
} }
template <typename I1, typename I2> template <typename I1, typename I2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void static void
call(I1 const& src, I2 const& dest, mpl::false_) call(I1 const& src, I2 const& dest, mpl::false_)
{ {
@ -50,7 +50,7 @@ namespace boost { namespace fusion
} }
template <typename I1, typename I2> template <typename I1, typename I2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void static void
call(I1 const& src, I2 const& dest) call(I1 const& src, I2 const& dest)
{ {
@ -71,7 +71,7 @@ namespace boost { namespace fusion
} }
template <typename Seq1, typename Seq2> template <typename Seq1, typename Seq2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::copy<Seq1 const, Seq2>::type inline typename result_of::copy<Seq1 const, Seq2>::type
copy(Seq1 const& src, Seq2& dest) copy(Seq1 const& src, Seq2& dest)
{ {

View File

@ -34,14 +34,14 @@ namespace boost { namespace fusion
typedef typename result_of::end<Seq2>::type end2_type; typedef typename result_of::end<Seq2>::type end2_type;
template <typename I1, typename I2> template <typename I1, typename I2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void static void
call(I1 const&, I2 const&, mpl::true_) call(I1 const&, I2 const&, mpl::true_)
{ {
} }
template <typename I1, typename I2> template <typename I1, typename I2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void static void
call(I1 const& src, I2 const& dest, mpl::false_) call(I1 const& src, I2 const& dest, mpl::false_)
{ {
@ -50,7 +50,7 @@ namespace boost { namespace fusion
} }
template <typename I1, typename I2> template <typename I1, typename I2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void static void
call(I1 const& src, I2 const& dest) call(I1 const& src, I2 const& dest)
{ {
@ -71,7 +71,7 @@ namespace boost { namespace fusion
} }
template <typename Seq1, typename Seq2> template <typename Seq1, typename Seq2>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::move<Seq1, Seq2>::type inline typename result_of::move<Seq1, Seq2>::type
move(Seq1&& src, Seq2& dest) move(Seq1&& src, Seq2& dest)
{ {

View File

@ -26,9 +26,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename State, typename F> template <typename Sequence, typename State, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::accumulate<Sequence, State const, F> , result_of::accumulate<Sequence, State const, F>
@ -39,9 +38,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename State, typename F> template <typename Sequence, typename State, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::accumulate<Sequence const, State const, F> , result_of::accumulate<Sequence const, State const, F>

View File

@ -20,8 +20,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename State, typename F> template <typename Sequence, typename State, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename inline typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::accumulate<Sequence, State const, F> , result_of::accumulate<Sequence, State const, F>
@ -29,8 +29,8 @@ namespace boost { namespace fusion
accumulate(Sequence& seq, State const& state, F f); accumulate(Sequence& seq, State const& state, F f);
template <typename Sequence, typename State, typename F> template <typename Sequence, typename State, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename inline typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::accumulate<Sequence const, State const, F> , result_of::accumulate<Sequence const, State const, F>

View File

@ -21,14 +21,14 @@ namespace boost { namespace fusion {
namespace detail namespace detail
{ {
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline void inline void
for_each_linear(First const&, Last const&, F const&, mpl::true_) for_each_linear(First const&, Last const&, F const&, mpl::true_)
{ {
} }
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline void inline void
for_each_linear(First const& first, Last const& last, F const& f, mpl::false_) for_each_linear(First const& first, Last const& last, F const& f, mpl::false_)
{ {
@ -39,7 +39,7 @@ namespace detail
template <typename Sequence, typename F, typename Tag> template <typename Sequence, typename F, typename Tag>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline void inline void
for_each_dispatch(Sequence& seq, F const& f, Tag) for_each_dispatch(Sequence& seq, F const& f, Tag)
{ {
@ -56,7 +56,7 @@ namespace detail
struct for_each_unrolled struct for_each_unrolled
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void call(I0 const& i0, F const& f) static void call(I0 const& i0, F const& f)
{ {
f(*i0); f(*i0);
@ -77,7 +77,7 @@ namespace detail
struct for_each_unrolled<3> struct for_each_unrolled<3>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void call(I0 const& i0, F const& f) static void call(I0 const& i0, F const& f)
{ {
f(*i0); f(*i0);
@ -94,7 +94,7 @@ namespace detail
struct for_each_unrolled<2> struct for_each_unrolled<2>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void call(I0 const& i0, F const& f) static void call(I0 const& i0, F const& f)
{ {
f(*i0); f(*i0);
@ -108,7 +108,7 @@ namespace detail
struct for_each_unrolled<1> struct for_each_unrolled<1>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void call(I0 const& i0, F const& f) static void call(I0 const& i0, F const& f)
{ {
f(*i0); f(*i0);
@ -119,14 +119,14 @@ namespace detail
struct for_each_unrolled<0> struct for_each_unrolled<0>
{ {
template<typename It, typename F> template<typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static void call(It const&, F const&) static void call(It const&, F const&)
{ {
} }
}; };
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline void inline void
for_each_dispatch(Sequence& seq, F const& f, random_access_traversal_tag) for_each_dispatch(Sequence& seq, F const& f, random_access_traversal_tag)
{ {
@ -136,7 +136,7 @@ namespace detail
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline void inline void
for_each(Sequence& seq, F const& f, mpl::false_) // unsegmented implementation for_each(Sequence& seq, F const& f, mpl::false_) // unsegmented implementation
{ {

View File

@ -16,7 +16,7 @@ namespace boost { namespace fusion { namespace detail
template <typename Fun> template <typename Fun>
struct segmented_fold_fun struct segmented_fold_fun
{ {
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit segmented_fold_fun(Fun const& f) explicit segmented_fold_fun(Fun const& f)
: fun(f) : fun(f)
{} {}
@ -29,7 +29,7 @@ namespace boost { namespace fusion { namespace detail
typedef typename result_of::fold<Sequence, State, Fun>::type type; typedef typename result_of::fold<Sequence, State, Fun>::type type;
typedef mpl::true_ continue_type; typedef mpl::true_ continue_type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq, State const& state, Context const&, segmented_fold_fun const& fun) static type call(Sequence& seq, State const& state, Context const&, segmented_fold_fun const& fun)
{ {
return fusion::fold(seq, state, fun.fun); return fusion::fold(seq, state, fun.fun);
@ -52,7 +52,7 @@ namespace boost { namespace fusion { namespace detail
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(State& state, Sequence& seq, Fun fun) static type call(State& state, Sequence& seq, Fun fun)
{ {
return fusion::segmented_fold_until(seq, state, segmented_fold_fun<Fun>(fun)); return fusion::segmented_fold_until(seq, state, segmented_fold_fun<Fun>(fun));

View File

@ -18,7 +18,7 @@ namespace boost { namespace fusion { namespace detail
template <typename Fun> template <typename Fun>
struct segmented_for_each_fun struct segmented_for_each_fun
{ {
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit segmented_for_each_fun(Fun const& f) explicit segmented_for_each_fun(Fun const& f)
: fun(f) : fun(f)
{} {}
@ -31,7 +31,7 @@ namespace boost { namespace fusion { namespace detail
typedef void_ type; typedef void_ type;
typedef mpl::true_ continue_type; typedef mpl::true_ continue_type;
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq, State const&, Context const&, segmented_for_each_fun const& fun) static type call(Sequence& seq, State const&, Context const&, segmented_for_each_fun const& fun)
{ {
fusion::for_each(seq, fun.fun); fusion::for_each(seq, fun.fun);
@ -41,7 +41,7 @@ namespace boost { namespace fusion { namespace detail
}; };
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline void inline void
for_each(Sequence& seq, F const& f, mpl::true_) // segmented implementation for_each(Sequence& seq, F const& f, mpl::true_) // segmented implementation
{ {

View File

@ -27,9 +27,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, void , void
@ -40,9 +39,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, void , void

View File

@ -20,9 +20,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, void , void
@ -30,9 +29,8 @@ namespace boost { namespace fusion
for_each(Sequence& seq, F const& f); for_each(Sequence& seq, F const& f);
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, void , void

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
all(Sequence const& seq, F f) all(Sequence const& seq, F f)
{ {

View File

@ -25,7 +25,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
any(Sequence const& seq, F f) any(Sequence const& seq, F f)
{ {

View File

@ -26,9 +26,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename T> template <typename Sequence, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, int , int

View File

@ -26,9 +26,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, int , int

View File

@ -21,7 +21,7 @@
namespace boost { namespace fusion { namespace detail namespace boost { namespace fusion { namespace detail
{ {
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
linear_all(First const&, Last const&, F const&, mpl::true_) linear_all(First const&, Last const&, F const&, mpl::true_)
{ {
@ -29,7 +29,7 @@ namespace boost { namespace fusion { namespace detail
} }
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
linear_all(First const& first, Last const& last, F& f, mpl::false_) linear_all(First const& first, Last const& last, F& f, mpl::false_)
{ {
@ -43,7 +43,7 @@ namespace boost { namespace fusion { namespace detail
} }
template <typename Sequence, typename F, typename Tag> template <typename Sequence, typename F, typename Tag>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
all(Sequence const& seq, F f, Tag) all(Sequence const& seq, F f, Tag)
{ {
@ -60,7 +60,7 @@ namespace boost { namespace fusion { namespace detail
struct unrolled_all struct unrolled_all
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return return
@ -76,7 +76,7 @@ namespace boost { namespace fusion { namespace detail
struct unrolled_all<3> struct unrolled_all<3>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return return
@ -90,7 +90,7 @@ namespace boost { namespace fusion { namespace detail
struct unrolled_all<2> struct unrolled_all<2>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return return
@ -103,7 +103,7 @@ namespace boost { namespace fusion { namespace detail
struct unrolled_all<1> struct unrolled_all<1>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return f(*it); return f(*it);
@ -114,7 +114,7 @@ namespace boost { namespace fusion { namespace detail
struct unrolled_all<0> struct unrolled_all<0>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& /*it*/, F /*f*/) static bool call(It const& /*it*/, F /*f*/)
{ {
return true; return true;
@ -122,7 +122,7 @@ namespace boost { namespace fusion { namespace detail
}; };
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
all(Sequence const& seq, F f, random_access_traversal_tag) all(Sequence const& seq, F f, random_access_traversal_tag)
{ {

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion {
namespace detail namespace detail
{ {
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
linear_any(First const&, Last const&, F const&, mpl::true_) linear_any(First const&, Last const&, F const&, mpl::true_)
{ {
@ -32,7 +32,7 @@ namespace detail
} }
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
linear_any(First const& first, Last const& last, F& f, mpl::false_) linear_any(First const& first, Last const& last, F& f, mpl::false_)
{ {
@ -46,7 +46,7 @@ namespace detail
} }
template <typename Sequence, typename F, typename Tag> template <typename Sequence, typename F, typename Tag>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
any(Sequence const& seq, F f, Tag) any(Sequence const& seq, F f, Tag)
{ {
@ -63,7 +63,7 @@ namespace detail
struct unrolled_any struct unrolled_any
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return return
@ -79,7 +79,7 @@ namespace detail
struct unrolled_any<3> struct unrolled_any<3>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return return
@ -93,7 +93,7 @@ namespace detail
struct unrolled_any<2> struct unrolled_any<2>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return return
@ -106,7 +106,7 @@ namespace detail
struct unrolled_any<1> struct unrolled_any<1>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const& it, F f) static bool call(It const& it, F f)
{ {
return f(*it); return f(*it);
@ -117,7 +117,7 @@ namespace detail
struct unrolled_any<0> struct unrolled_any<0>
{ {
template <typename It, typename F> template <typename It, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool call(It const&, F) static bool call(It const&, F)
{ {
return false; return false;
@ -125,7 +125,7 @@ namespace detail
}; };
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
any(Sequence const& seq, F f, random_access_traversal_tag) any(Sequence const& seq, F f, random_access_traversal_tag)
{ {

View File

@ -28,7 +28,7 @@ namespace boost { namespace fusion { namespace detail
struct compare_convertible<true> struct compare_convertible<true>
{ {
template <typename T1, typename T2> template <typename T1, typename T2>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool static bool
call(T1 const& x, T2 const& y) call(T1 const& x, T2 const& y)
{ {
@ -41,7 +41,7 @@ namespace boost { namespace fusion { namespace detail
struct compare_convertible<false> struct compare_convertible<false>
{ {
template <typename T1, typename T2> template <typename T1, typename T2>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static bool static bool
call(T1 const&, T2 const&) call(T1 const&, T2 const&)
{ {
@ -53,14 +53,14 @@ namespace boost { namespace fusion { namespace detail
struct count_compare struct count_compare
{ {
typedef typename detail::call_param<T1>::type param; typedef typename detail::call_param<T1>::type param;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
count_compare(param in_x) count_compare(param in_x)
: x(in_x) {} : x(in_x) {}
template <typename T2> template <typename T2>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
bool bool
operator()(T2 const& y) operator()(T2 const& y) const
{ {
return return
compare_convertible< compare_convertible<

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion {
namespace detail namespace detail
{ {
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline int inline int
linear_count_if(First const&, Last const&, F const&, mpl::true_) linear_count_if(First const&, Last const&, F const&, mpl::true_)
{ {
@ -32,7 +32,7 @@ namespace detail
} }
template <typename First, typename Last, typename F> template <typename First, typename Last, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline int inline int
linear_count_if(First const& first, Last const& last, F& f, mpl::false_) linear_count_if(First const& first, Last const& last, F& f, mpl::false_)
{ {
@ -48,7 +48,7 @@ namespace detail
} }
template <typename Sequence, typename F, typename Tag> template <typename Sequence, typename F, typename Tag>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline int inline int
count_if(Sequence const& seq, F f, Tag) count_if(Sequence const& seq, F f, Tag)
{ {
@ -65,7 +65,7 @@ namespace detail
struct unrolled_count_if struct unrolled_count_if
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f) static int call(I0 const& i0, F f)
{ {
int ct = unrolled_count_if<n-4>:: int ct = unrolled_count_if<n-4>::
@ -96,7 +96,7 @@ namespace detail
struct unrolled_count_if<3> struct unrolled_count_if<3>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f) static int call(I0 const& i0, F f)
{ {
int ct = 0; int ct = 0;
@ -121,7 +121,7 @@ namespace detail
struct unrolled_count_if<2> struct unrolled_count_if<2>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f) static int call(I0 const& i0, F f)
{ {
int ct = 0; int ct = 0;
@ -142,7 +142,7 @@ namespace detail
struct unrolled_count_if<1> struct unrolled_count_if<1>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static int call(I0 const& i0, F f) static int call(I0 const& i0, F f)
{ {
int ct = 0; int ct = 0;
@ -157,7 +157,7 @@ namespace detail
struct unrolled_count_if<0> struct unrolled_count_if<0>
{ {
template<typename I0, typename F> template<typename I0, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static int call(I0 const&, F) static int call(I0 const&, F)
{ {
return 0; return 0;
@ -165,7 +165,7 @@ namespace detail
}; };
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline int inline int
count_if(Sequence const& seq, F f, random_access_traversal_tag) count_if(Sequence const& seq, F f, random_access_traversal_tag)
{ {

View File

@ -184,7 +184,7 @@ namespace detail
type; type;
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
recursive_call(Iterator const& iter, mpl::true_) recursive_call(Iterator const& iter, mpl::true_)
{ {
@ -192,7 +192,7 @@ namespace detail
} }
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
recursive_call(Iterator const& iter, mpl::false_) recursive_call(Iterator const& iter, mpl::false_)
{ {
@ -200,7 +200,7 @@ namespace detail
} }
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
recursive_call(Iterator const& iter) recursive_call(Iterator const& iter)
{ {
@ -209,7 +209,7 @@ namespace detail
} }
template <typename Iterator, typename Tag> template <typename Iterator, typename Tag>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
choose_call(Iterator const& iter, Tag) choose_call(Iterator const& iter, Tag)
{ {
@ -217,7 +217,7 @@ namespace detail
} }
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
choose_call(Iterator const& iter, random_access_traversal_tag) choose_call(Iterator const& iter, random_access_traversal_tag)
{ {
@ -226,7 +226,7 @@ namespace detail
} }
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
iter_call(Iterator const& iter) iter_call(Iterator const& iter)
{ {
@ -234,7 +234,7 @@ namespace detail
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Sequence& seq) call(Sequence& seq)
{ {

View File

@ -45,19 +45,19 @@ namespace boost { namespace fusion { namespace detail
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq, State const&state, Context const& context, segmented_find_fun) static type call(Sequence& seq, State const&state, Context const& context, segmented_find_fun)
{ {
return call_impl(seq, state, context, continue_type()); return call_impl(seq, state, context, continue_type());
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call_impl(Sequence&, State const&state, Context const&, mpl::true_) static type call_impl(Sequence&, State const&state, Context const&, mpl::true_)
{ {
return state; return state;
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call_impl(Sequence& seq, State const&, Context const& context, mpl::false_) static type call_impl(Sequence& seq, State const&, Context const& context, mpl::false_)
{ {
return fusion::make_segmented_iterator(fusion::find<T>(seq), context); return fusion::make_segmented_iterator(fusion::find<T>(seq), context);
@ -78,7 +78,7 @@ namespace boost { namespace fusion { namespace detail
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq) static type call(Sequence& seq)
{ {
return fusion::segmented_fold_until( return fusion::segmented_fold_until(

View File

@ -45,19 +45,19 @@ namespace boost { namespace fusion { namespace detail
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq, State const&state, Context const& context, segmented_find_if_fun) static type call(Sequence& seq, State const&state, Context const& context, segmented_find_if_fun)
{ {
return call_impl(seq, state, context, continue_type()); return call_impl(seq, state, context, continue_type());
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call_impl(Sequence&, State const&state, Context const&, mpl::true_) static type call_impl(Sequence&, State const&state, Context const&, mpl::true_)
{ {
return state; return state;
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call_impl(Sequence& seq, State const&, Context const& context, mpl::false_) static type call_impl(Sequence& seq, State const&, Context const& context, mpl::false_)
{ {
return fusion::make_segmented_iterator(fusion::find_if<Pred>(seq), context); return fusion::make_segmented_iterator(fusion::find_if<Pred>(seq), context);
@ -78,7 +78,7 @@ namespace boost { namespace fusion { namespace detail
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq) static type call(Sequence& seq)
{ {
return fusion::segmented_fold_until( return fusion::segmented_fold_until(

View File

@ -47,7 +47,7 @@ namespace boost { namespace fusion
} }
template <typename T, typename Sequence> template <typename T, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename inline typename
lazy_disable_if< lazy_disable_if<
is_const<Sequence> is_const<Sequence>
@ -60,7 +60,7 @@ namespace boost { namespace fusion
} }
template <typename T, typename Sequence> template <typename T, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::find<Sequence const, T>::type const inline typename result_of::find<Sequence const, T>::type const
find(Sequence const& seq) find(Sequence const& seq)
{ {

View File

@ -20,7 +20,7 @@ namespace boost { namespace fusion
} }
template <typename T, typename Sequence> template <typename T, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename inline typename
lazy_disable_if< lazy_disable_if<
is_const<Sequence> is_const<Sequence>
@ -29,7 +29,7 @@ namespace boost { namespace fusion
find(Sequence& seq); find(Sequence& seq);
template <typename T, typename Sequence> template <typename T, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::find<Sequence const, T>::type const inline typename result_of::find<Sequence const, T>::type const
find(Sequence const& seq); find(Sequence const& seq);
}} }}

View File

@ -42,7 +42,7 @@ namespace boost { namespace fusion
} }
template <typename Pred, typename Sequence> template <typename Pred, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename inline typename
lazy_disable_if< lazy_disable_if<
is_const<Sequence> is_const<Sequence>
@ -55,7 +55,7 @@ namespace boost { namespace fusion
} }
template <typename Pred, typename Sequence> template <typename Pred, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::find_if<Sequence const, Pred>::type const inline typename result_of::find_if<Sequence const, Pred>::type const
find_if(Sequence const& seq) find_if(Sequence const& seq)
{ {

View File

@ -21,7 +21,7 @@ namespace boost { namespace fusion
} }
template <typename Pred, typename Sequence> template <typename Pred, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename inline typename
lazy_disable_if< lazy_disable_if<
is_const<Sequence> is_const<Sequence>
@ -30,7 +30,7 @@ namespace boost { namespace fusion
find_if(Sequence& seq); find_if(Sequence& seq);
template <typename Pred, typename Sequence> template <typename Pred, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::find_if<Sequence const, Pred>::type const inline typename result_of::find_if<Sequence const, Pred>::type const
find_if(Sequence const& seq); find_if(Sequence const& seq);
}} }}

View File

@ -23,7 +23,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline bool inline bool
none(Sequence const& seq, F f) none(Sequence const& seq, F f)
{ {

View File

@ -22,7 +22,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::clear<Sequence const>::type inline typename result_of::clear<Sequence const>::type
clear(Sequence const& /*seq*/) clear(Sequence const& /*seq*/)
{ {

View File

@ -21,7 +21,7 @@ namespace boost { namespace fusion { namespace detail
struct replacer_helper<false> struct replacer_helper<false>
{ {
template <typename U, typename T> template <typename U, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static U& static U&
call(U& x, T const&, T const&) call(U& x, T const&, T const&)
{ {
@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace detail
struct replacer_helper<true> struct replacer_helper<true>
{ {
template <typename U, typename T> template <typename U, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static U static U
call(U& x, T const& old_value, T const& new_value) call(U& x, T const& old_value, T const& new_value)
{ {
@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail
template <typename T> template <typename T>
struct replacer struct replacer
{ {
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
replacer(T const& in_old_value, T const& in_new_value) replacer(T const& in_old_value, T const& in_new_value)
: old_value(in_old_value), new_value(in_new_value) {} : old_value(in_old_value), new_value(in_new_value) {}
@ -61,7 +61,7 @@ namespace boost { namespace fusion { namespace detail
}; };
template <typename U> template <typename U>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename result<replacer(U)>::type typename result<replacer(U)>::type
operator()(U const& x) const operator()(U const& x) const
{ {

View File

@ -21,7 +21,7 @@ namespace boost { namespace fusion { namespace detail
struct replacer_if_helper<false> struct replacer_if_helper<false>
{ {
template <typename U, typename F, typename T> template <typename U, typename F, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static U& static U&
call(U& x, F&, T const&) call(U& x, F&, T const&)
{ {
@ -33,7 +33,7 @@ namespace boost { namespace fusion { namespace detail
struct replacer_if_helper<true> struct replacer_if_helper<true>
{ {
template <typename U, typename F, typename T> template <typename U, typename F, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static U static U
call(U& x, F& f, T const& new_value) call(U& x, F& f, T const& new_value)
{ {
@ -44,7 +44,7 @@ namespace boost { namespace fusion { namespace detail
template <typename F, typename T> template <typename F, typename T>
struct replacer_if struct replacer_if
{ {
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
replacer_if(F in_f, T const& in_new_value) replacer_if(F in_f, T const& in_new_value)
: f(in_f), new_value(in_new_value) {} : f(in_f), new_value(in_new_value) {}
@ -61,7 +61,7 @@ namespace boost { namespace fusion { namespace detail
}; };
template <typename U> template <typename U>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename result<replacer_if(U)>::type typename result<replacer_if(U)>::type
operator()(U const& x) const operator()(U const& x) const
{ {

View File

@ -38,21 +38,21 @@ namespace boost { namespace fusion
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const& first, mpl::false_) call(First const& first, mpl::false_)
{ {
return fusion::next(convert_iterator<First>::call(first)); return fusion::next(convert_iterator<First>::call(first));
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const& first, mpl::true_) call(First const& first, mpl::true_)
{ {
return convert_iterator<First>::call(first); return convert_iterator<First>::call(first);
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const& first) call(First const& first)
{ {
@ -99,7 +99,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename First> template <typename Sequence, typename First>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename inline typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
@ -122,7 +122,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename First, typename Last> template <typename Sequence, typename First, typename Last>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::erase<Sequence const, First, Last>::type inline typename result_of::erase<Sequence const, First, Last>::type
erase(Sequence const& seq, First const& first, Last const& last) erase(Sequence const& seq, First const& first, Last const& last)
{ {

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion
} }
template <typename Key, typename Sequence> template <typename Key, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::erase_key<Sequence const, Key>::type inline typename result_of::erase_key<Sequence const, Key>::type
erase_key(Sequence const& seq) erase_key(Sequence const& seq)
{ {

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion
} }
template <typename T, typename Sequence> template <typename T, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::filter<Sequence const, T>::type inline typename result_of::filter<Sequence const, T>::type
filter(Sequence const& seq) filter(Sequence const& seq)
{ {

View File

@ -22,7 +22,7 @@ namespace boost { namespace fusion
} }
template <typename Pred, typename Sequence> template <typename Pred, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::filter_if<Sequence const, Pred>::type inline typename result_of::filter_if<Sequence const, Pred>::type
filter_if(Sequence const& seq) filter_if(Sequence const& seq)
{ {

View File

@ -25,6 +25,7 @@ namespace boost { namespace fusion { namespace result_of
namespace boost { namespace fusion namespace boost { namespace fusion
{ {
template <typename Sequence> template <typename Sequence>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::flatten<Sequence>::type inline typename result_of::flatten<Sequence>::type
flatten(Sequence& view) flatten(Sequence& view)
{ {
@ -32,6 +33,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::flatten<Sequence const>::type inline typename result_of::flatten<Sequence const>::type
flatten(Sequence const& view) flatten(Sequence const& view)
{ {

View File

@ -41,9 +41,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename Position, typename T> template <typename Sequence, typename Position, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::insert<Sequence const, Position, T> , result_of::insert<Sequence const, Position, T>

View File

@ -36,7 +36,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename Position, typename Range> template <typename Sequence, typename Position, typename Range>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::insert_range<Sequence const, Position, Range const>::type inline typename result_of::insert_range<Sequence const, Position, Range const>::type
insert_range(Sequence const& seq, Position const& pos, Range const& range) insert_range(Sequence const& seq, Position const& pos, Range const& range)
{ {

View File

@ -23,7 +23,7 @@ namespace boost { namespace fusion {
} }
template<typename LhSequence, typename RhSequence> template<typename LhSequence, typename RhSequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::join<LhSequence const, RhSequence const>::type inline typename result_of::join<LhSequence const, RhSequence const>::type
join(LhSequence const& lhs, RhSequence const& rhs) join(LhSequence const& lhs, RhSequence const& rhs)
{ {

View File

@ -33,7 +33,7 @@ namespace boost { namespace fusion
static bool const is_last = IsLast; static bool const is_last = IsLast;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
pop_back_iterator(Iterator_ const& iterator_base) pop_back_iterator(Iterator_ const& iterator_base)
: base_type(iterator_base) {} : base_type(iterator_base) {}
@ -42,7 +42,7 @@ namespace boost { namespace fusion
{ {
typedef pop_back_iterator<BaseIterator, is_last> type; typedef pop_back_iterator<BaseIterator, is_last> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(BaseIterator const& i) call(BaseIterator const& i)
{ {
@ -94,7 +94,7 @@ namespace boost { namespace fusion
typedef pop_back_iterator<base_prior, false> type; typedef pop_back_iterator<base_prior, false> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& i) call(Iterator const& i)
{ {
@ -116,7 +116,7 @@ namespace boost { namespace fusion
typedef pop_back_iterator<base_prior, false> type; typedef pop_back_iterator<base_prior, false> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& i) call(Iterator const& i)
{ {
@ -152,7 +152,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::pop_back<Sequence const>::type inline typename result_of::pop_back<Sequence const>::type
pop_back(Sequence const& seq) pop_back(Sequence const& seq)
{ {

View File

@ -32,7 +32,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::pop_front<Sequence const>::type inline typename result_of::pop_front<Sequence const>::type
pop_front(Sequence const& seq) pop_front(Sequence const& seq)
{ {

View File

@ -27,9 +27,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename T> template <typename Sequence, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::push_back<Sequence const, T> , result_of::push_back<Sequence const, T>

View File

@ -27,9 +27,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename T> template <typename Sequence, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
lazy_enable_if< lazy_enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::push_front<Sequence const, T> , result_of::push_front<Sequence const, T>

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion
} }
template <typename T, typename Sequence> template <typename T, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::remove<Sequence const, T>::type inline typename result_of::remove<Sequence const, T>::type
remove(Sequence const& seq) remove(Sequence const& seq)
{ {

View File

@ -24,7 +24,7 @@ namespace boost { namespace fusion
} }
template <typename Pred, typename Sequence> template <typename Pred, typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::remove_if<Sequence const, Pred>::type inline typename result_of::remove_if<Sequence const, Pred>::type
remove_if(Sequence const& seq) remove_if(Sequence const& seq)
{ {

View File

@ -25,9 +25,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename T> template <typename Sequence, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, typename result_of::replace<Sequence const, T>::type , typename result_of::replace<Sequence const, T>::type

View File

@ -26,9 +26,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F, typename T> template <typename Sequence, typename F, typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, typename result_of::replace_if<Sequence const, F, T>::type , typename result_of::replace_if<Sequence const, F, T>::type

View File

@ -24,9 +24,8 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline inline typename
typename
enable_if< enable_if<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, reverse_view<Sequence const> , reverse_view<Sequence const>

View File

@ -34,7 +34,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence, typename F> template <typename Sequence, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::transform<Sequence const, F>::type inline typename result_of::transform<Sequence const, F>::type
transform(Sequence const& seq, F f) transform(Sequence const& seq, F f)
{ {
@ -42,7 +42,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence1, typename Sequence2, typename F> template <typename Sequence1, typename Sequence2, typename F>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::transform<Sequence1 const, Sequence2 const, F>::type inline typename result_of::transform<Sequence1 const, Sequence2 const, F>::type
transform(Sequence1 const& seq1, Sequence2 const& seq2, F f) transform(Sequence1 const& seq1, Sequence2 const& seq2, F f)
{ {

View File

@ -101,7 +101,7 @@ namespace boost { namespace fusion
#define FUSION_REF_PARAM(z, n, data) const T ## n& #define FUSION_REF_PARAM(z, n, data) const T ## n&
template<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, typename T)> template<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, typename T)>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::zip<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, const T)>::type inline typename result_of::zip<BOOST_PP_ENUM_PARAMS(ZIP_ITERATION, const T)>::type
zip(BOOST_PP_ENUM_BINARY_PARAMS(ZIP_ITERATION, T, const& t)) zip(BOOST_PP_ENUM_BINARY_PARAMS(ZIP_ITERATION, T, const& t))
{ {

View File

@ -8,6 +8,7 @@
#if !defined(BOOST_FUSION_BACK_EXTENDED_DEQUE_26112006_2209) #if !defined(BOOST_FUSION_BACK_EXTENDED_DEQUE_26112006_2209)
#define BOOST_FUSION_BACK_EXTENDED_DEQUE_26112006_2209 #define BOOST_FUSION_BACK_EXTENDED_DEQUE_26112006_2209
#include <boost/config.hpp>
#include <boost/fusion/support/config.hpp> #include <boost/fusion/support/config.hpp>
#include <boost/mpl/int.hpp> #include <boost/mpl/int.hpp>
@ -28,20 +29,20 @@ namespace boost { namespace fusion
typedef mpl::int_<(result_of::size<Deque>::value + 1)> size; typedef mpl::int_<(result_of::size<Deque>::value + 1)> size;
template <typename Arg> template <typename Arg>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
back_extended_deque(Deque const& deque, Arg const& val) back_extended_deque(Deque const& deque, Arg const& val)
: base(val, deque) : base(val, deque)
{} {}
#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template <typename Arg> template <typename Arg>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
back_extended_deque(Deque const& deque, Arg& val) back_extended_deque(Deque const& deque, Arg& val)
: base(val, deque) : base(val, deque)
{} {}
#else #else
template <typename Arg> template <typename Arg>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
back_extended_deque(Deque const& deque, Arg&& val) back_extended_deque(Deque const& deque, Arg&& val)
: base(BOOST_FUSION_FWD_ELEM(Arg, val), deque) : base(BOOST_FUSION_FWD_ELEM(Arg, val), deque)
{} {}

View File

@ -39,7 +39,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::as_deque<Sequence>::type inline typename result_of::as_deque<Sequence>::type
as_deque(Sequence& seq) as_deque(Sequence& seq)
{ {
@ -48,7 +48,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::as_deque<Sequence const>::type inline typename result_of::as_deque<Sequence const>::type
as_deque(Sequence const& seq) as_deque(Sequence const& seq)
{ {

View File

@ -54,16 +54,16 @@ namespace boost { namespace fusion
typedef mpl::false_ is_view; typedef mpl::false_ is_view;
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(Sequence const&, deque(Sequence const&,
typename enable_if< typename enable_if<
mpl::and_< mpl::and_<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::empty<Sequence>>>::type* /*dummy*/ = 0) , result_of::empty<Sequence>>>::type* /*dummy*/ = 0) BOOST_NOEXCEPT
{} {}
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque() {} deque() BOOST_NOEXCEPT {}
}; };
template <typename Head, typename ...Tail> template <typename Head, typename ...Tail>
@ -79,14 +79,14 @@ namespace boost { namespace fusion
typedef mpl::int_<-1> next_down; typedef mpl::int_<-1> next_down;
typedef mpl::false_ is_view; typedef mpl::false_ is_view;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque() deque()
{} {}
template <typename Head_, typename ...Tail_, typename = template <typename Head_, typename ...Tail_, typename =
typename enable_if<is_convertible<Head_, Head> >::type typename enable_if<is_convertible<Head_, Head> >::type
> >
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque<Head_, Tail_...> const& seq) deque(deque<Head_, Tail_...> const& seq)
: base(seq) : base(seq)
{} {}
@ -94,7 +94,7 @@ namespace boost { namespace fusion
template <typename Head_, typename ...Tail_, typename = template <typename Head_, typename ...Tail_, typename =
typename enable_if<is_convertible<Head_, Head> >::type typename enable_if<is_convertible<Head_, Head> >::type
> >
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque<Head_, Tail_...>& seq) deque(deque<Head_, Tail_...>& seq)
: base(seq) : base(seq)
{} {}
@ -103,25 +103,25 @@ namespace boost { namespace fusion
template <typename Head_, typename ...Tail_, typename = template <typename Head_, typename ...Tail_, typename =
typename enable_if<is_convertible<Head_, Head> >::type typename enable_if<is_convertible<Head_, Head> >::type
> >
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque<Head_, Tail_...>&& seq) deque(deque<Head_, Tail_...>&& seq)
: base(std::forward<deque<Head_, Tail_...>>(seq)) : base(std::forward<deque<Head_, Tail_...>>(seq))
{} {}
#endif #endif
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque const& seq) deque(deque const& seq)
: base(seq) : base(seq)
{} {}
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque&& seq) deque(deque&& seq)
: base(std::forward<deque>(seq)) : base(std::forward<deque>(seq))
{} {}
#endif #endif
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(typename detail::call_param<Head>::type head explicit deque(typename detail::call_param<Head>::type head
, typename detail::call_param<Tail>::type... tail) , typename detail::call_param<Tail>::type... tail)
: base(detail::deque_keyed_values<Head, Tail...>::construct(head, tail...)) : base(detail::deque_keyed_values<Head, Tail...>::construct(head, tail...))
@ -131,7 +131,7 @@ namespace boost { namespace fusion
template <typename Head_, typename ...Tail_, typename = template <typename Head_, typename ...Tail_, typename =
typename enable_if<is_convertible<Head_, Head> >::type typename enable_if<is_convertible<Head_, Head> >::type
> >
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(Head_&& head, Tail_&&... tail) explicit deque(Head_&& head, Tail_&&... tail)
: base(detail::deque_keyed_values<Head, Tail...> : base(detail::deque_keyed_values<Head, Tail...>
::forward_(BOOST_FUSION_FWD_ELEM(Head_, head), BOOST_FUSION_FWD_ELEM(Tail_, tail)...)) ::forward_(BOOST_FUSION_FWD_ELEM(Head_, head), BOOST_FUSION_FWD_ELEM(Tail_, tail)...))
@ -140,21 +140,21 @@ namespace boost { namespace fusion
template <typename Head_, typename ...Tail_, typename = template <typename Head_, typename ...Tail_, typename =
typename enable_if<is_convertible<Head_, Head> >::type typename enable_if<is_convertible<Head_, Head> >::type
> >
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(Head_ const& head, Tail_ const&... tail) explicit deque(Head_ const& head, Tail_ const&... tail)
: base(detail::deque_keyed_values<Head_, Tail_...>::construct(head, tail...)) : base(detail::deque_keyed_values<Head_, Tail_...>::construct(head, tail...))
{} {}
#endif #endif
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(Sequence const& seq explicit deque(Sequence const& seq
, typename disable_if<is_convertible<Sequence, Head> >::type* /*dummy*/ = 0) , typename disable_if<is_convertible<Sequence, Head> >::type* /*dummy*/ = 0)
: base(base::from_iterator(fusion::begin(seq))) : base(base::from_iterator(fusion::begin(seq)))
{} {}
template <typename ...Elements> template <typename ...Elements>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque& operator=(deque<Elements...> const& rhs) deque& operator=(deque<Elements...> const& rhs)
{ {
base::operator=(rhs); base::operator=(rhs);
@ -162,7 +162,7 @@ namespace boost { namespace fusion
} }
template <typename T> template <typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque& operator=(T const& rhs) deque& operator=(T const& rhs)
{ {
base::operator=(rhs); base::operator=(rhs);
@ -171,7 +171,7 @@ namespace boost { namespace fusion
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template <typename T> template <typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque& operator=(T&& rhs) deque& operator=(T&& rhs)
{ {
base::operator=(BOOST_FUSION_FWD_ELEM(T, rhs)); base::operator=(BOOST_FUSION_FWD_ELEM(T, rhs));

View File

@ -31,7 +31,7 @@ namespace boost { namespace fusion {
typedef Seq sequence; typedef Seq sequence;
typedef mpl::int_<Pos> index; typedef mpl::int_<Pos> index;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque_iterator(Seq& seq) deque_iterator(Seq& seq)
: seq_(seq) : seq_(seq)
{} {}
@ -54,7 +54,7 @@ namespace boost { namespace fusion {
add_const<element_type>, add_const<element_type>,
mpl::identity<element_type> >::type>::type type; mpl::identity<element_type> >::type>::type type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& it) call(Iterator const& it)
{ {
@ -69,7 +69,7 @@ namespace boost { namespace fusion {
typedef typename Iterator::sequence sequence; typedef typename Iterator::sequence sequence;
typedef deque_iterator<sequence, index::value + N::value> type; typedef deque_iterator<sequence, index::value + N::value> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(Iterator const& i) call(Iterator const& i)
{ {
@ -96,7 +96,7 @@ namespace boost { namespace fusion {
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(I1 const&, I2 const&) call(I1 const&, I2 const&)
{ {

View File

@ -54,7 +54,7 @@ namespace boost { namespace fusion
>::type >::type
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq) static type call(Sequence& seq)
{ {
return seq.get(adjusted_index()); return seq.get(adjusted_index());

View File

@ -30,7 +30,7 @@ namespace boost { namespace fusion
deque_iterator<Sequence, (Sequence::next_down::value + 1)> deque_iterator<Sequence, (Sequence::next_down::value + 1)>
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq) static type call(Sequence& seq)
{ {
return type(seq); return type(seq);

View File

@ -26,7 +26,7 @@ namespace boost { namespace fusion { namespace detail
struct build_deque<First, Last, true> struct build_deque<First, Last, true>
{ {
typedef deque<> type; typedef deque<> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const&, Last const&) call(First const&, Last const&)
{ {
@ -42,7 +42,7 @@ namespace boost { namespace fusion { namespace detail
{ {
typedef deque<T, Rest...> type; typedef deque<T, Rest...> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(T const& first, deque<Rest...> const& rest) call(T const& first, deque<Rest...> const& rest)
{ {
@ -64,7 +64,7 @@ namespace boost { namespace fusion { namespace detail
typedef typename push_front::type type; typedef typename push_front::type type;
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type static type
call(First const& f, Last const& l) call(First const& f, Last const& l)
{ {

View File

@ -37,7 +37,8 @@ namespace boost { namespace fusion
{ {
typedef result_of::as_deque<Sequence> gen; typedef result_of::as_deque<Sequence> gen;
typedef typename gen::type type; typedef typename gen::type type;
BOOST_FUSION_GPU_ENABLED
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq) static type call(Sequence& seq)
{ {
return gen::call(seq); return gen::call(seq);

View File

@ -38,7 +38,7 @@ BOOST_FUSION_BARRIER_BEGIN
}; };
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static typename apply<Iterator>::type static typename apply<Iterator>::type
call(Iterator) call(Iterator)
{ {
@ -124,7 +124,7 @@ BOOST_FUSION_BARRIER_END
}; };
template <typename Iterator> template <typename Iterator>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static typename apply<Iterator>::type static typename apply<Iterator>::type
call(Iterator const& i0) call(Iterator const& i0)
{ {

View File

@ -33,7 +33,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::as_deque<Sequence>::type inline typename result_of::as_deque<Sequence>::type
as_deque(Sequence& seq) as_deque(Sequence& seq)
{ {
@ -42,7 +42,7 @@ namespace boost { namespace fusion
} }
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline typename result_of::as_deque<Sequence const>::type inline typename result_of::as_deque<Sequence const>::type
as_deque(Sequence const& seq) as_deque(Sequence const& seq)
{ {

View File

@ -79,34 +79,34 @@ namespace boost { namespace fusion {
#include <boost/fusion/container/deque/detail/cpp03/deque_forward_ctor.hpp> #include <boost/fusion/container/deque/detail/cpp03/deque_forward_ctor.hpp>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque() deque()
{} {}
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(typename detail::call_param<T0>::type t0) explicit deque(typename detail::call_param<T0>::type t0)
: base(t0, detail::nil_keyed_element()) : base(t0, detail::nil_keyed_element())
{} {}
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(deque const& rhs) explicit deque(deque const& rhs)
: base(rhs) : base(rhs)
{} {}
template<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename U)> template<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename U)>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)> const& seq) deque(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)> const& seq)
: base(seq) : base(seq)
{} {}
template<typename Sequence> template<typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(Sequence const& seq, typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0) deque(Sequence const& seq, typename disable_if<is_convertible<Sequence, T0> >::type* /*dummy*/ = 0)
: base(base::from_iterator(fusion::begin(seq))) : base(base::from_iterator(fusion::begin(seq)))
{} {}
template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename U)> template <BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename U)>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque& deque&
operator=(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)> const& rhs) operator=(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)> const& rhs)
{ {
@ -115,7 +115,7 @@ namespace boost { namespace fusion {
} }
template <typename T> template <typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque& deque&
operator=(T const& rhs) operator=(T const& rhs)
{ {
@ -129,23 +129,23 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \ #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
(defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)) (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
template <typename T0_> template <typename T0_>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(T0_&& t0 explicit deque(T0_&& t0
, typename enable_if<is_convertible<T0_, T0> >::type* /*dummy*/ = 0 , typename enable_if<is_convertible<T0_, T0> >::type* /*dummy*/ = 0
) )
: base(BOOST_FUSION_FWD_ELEM(T0_, t0), detail::nil_keyed_element()) : base(BOOST_FUSION_FWD_ELEM(T0_, t0), detail::nil_keyed_element())
{} {}
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
explicit deque(deque&& rhs) explicit deque(deque&& rhs)
: base(std::forward<deque>(rhs)) : base(std::forward<deque>(rhs))
{} {}
template<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename U)> template<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, typename U)>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>&& seq) deque(deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>&& seq)
: base(std::forward<deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>>(seq)) : base(std::forward<deque<BOOST_PP_ENUM_PARAMS(FUSION_MAX_DEQUE_SIZE, U)>>(seq))
{} {}
template <typename T> template <typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque& deque&
operator=(T&& rhs) operator=(T&& rhs)
{ {
@ -170,16 +170,16 @@ FUSION_HASH endif
typedef mpl::false_ is_view; typedef mpl::false_ is_view;
template <typename Sequence> template <typename Sequence>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(Sequence const&, deque(Sequence const&,
typename enable_if< typename enable_if<
mpl::and_< mpl::and_<
traits::is_sequence<Sequence> traits::is_sequence<Sequence>
, result_of::empty<Sequence> > >::type* /*dummy*/ = 0) , result_of::empty<Sequence> > >::type* /*dummy*/ = 0) BOOST_NOEXCEPT
{} {}
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque() {} deque() BOOST_NOEXCEPT {}
}; };
}} }}

View File

@ -35,7 +35,7 @@ FUSION_HASH if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#endif #endif
#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \ #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
(defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)) (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(BOOST_PP_ENUM_BINARY_PARAMS(N, typename detail::call_param<T, >::type t)) deque(BOOST_PP_ENUM_BINARY_PARAMS(N, typename detail::call_param<T, >::type t))
: base(detail::deque_keyed_values<BOOST_PP_ENUM_PARAMS(N, T)>::construct(BOOST_PP_ENUM_PARAMS(N, t))) : base(detail::deque_keyed_values<BOOST_PP_ENUM_PARAMS(N, T)>::construct(BOOST_PP_ENUM_PARAMS(N, t)))
{} {}
@ -49,13 +49,13 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#endif #endif
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \ #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
(defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)) (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& t)) deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& t))
: base(detail::deque_keyed_values<BOOST_PP_ENUM_PARAMS(N, T)>::construct(BOOST_PP_ENUM_PARAMS(N, t))) : base(detail::deque_keyed_values<BOOST_PP_ENUM_PARAMS(N, T)>::construct(BOOST_PP_ENUM_PARAMS(N, t)))
{} {}
template <BOOST_PP_ENUM_PARAMS(N, typename T_)> template <BOOST_PP_ENUM_PARAMS(N, typename T_)>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T_, && t)) deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T_, && t))
: base(detail::deque_keyed_values<BOOST_PP_ENUM_PARAMS(N, T)>:: : base(detail::deque_keyed_values<BOOST_PP_ENUM_PARAMS(N, T)>::
forward_(BOOST_PP_ENUM(N, FUSION_DEQUE_FORWARD_CTOR_FORWARD, _))) forward_(BOOST_PP_ENUM(N, FUSION_DEQUE_FORWARD_CTOR_FORWARD, _)))

View File

@ -68,13 +68,13 @@ namespace boost { namespace fusion { namespace detail
{ {
typedef nil_keyed_element type; typedef nil_keyed_element type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type construct() static type construct()
{ {
return type(); return type();
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type forward_() static type forward_()
{ {
return type(); return type();

View File

@ -34,7 +34,7 @@
#define N BOOST_PP_ITERATION() #define N BOOST_PP_ITERATION()
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type construct(BOOST_PP_ENUM_BINARY_PARAMS(N, typename detail::call_param<T, >::type t)) static type construct(BOOST_PP_ENUM_BINARY_PARAMS(N, typename detail::call_param<T, >::type t))
{ {
return type(t0, return type(t0,
@ -52,7 +52,7 @@ FUSION_HASH if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \ #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) || \
(defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES)) (defined(__WAVE__) && defined(BOOST_FUSION_CREATE_PREPROCESSED_FILES))
template <BOOST_PP_ENUM_PARAMS(N, typename T_)> template <BOOST_PP_ENUM_PARAMS(N, typename T_)>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type forward_(BOOST_PP_ENUM_BINARY_PARAMS(N, T_, && t)) static type forward_(BOOST_PP_ENUM_BINARY_PARAMS(N, T_, && t))
{ {
return type(BOOST_FUSION_FWD_ELEM(T_0, t0), return type(BOOST_FUSION_FWD_ELEM(T_0, t0),

View File

@ -28,7 +28,7 @@ namespace boost { namespace fusion { namespace detail
typedef typename deque_keyed_values_impl<next_index, Tail...>::type tail; typedef typename deque_keyed_values_impl<next_index, Tail...>::type tail;
typedef keyed_element<N, Head, tail> type; typedef keyed_element<N, Head, tail> type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type construct( static type construct(
typename detail::call_param<Head>::type head typename detail::call_param<Head>::type head
, typename detail::call_param<Tail>::type... tail) , typename detail::call_param<Tail>::type... tail)
@ -40,7 +40,7 @@ namespace boost { namespace fusion { namespace detail
} }
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template <typename Head_, typename ...Tail_> template <typename Head_, typename ...Tail_>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type forward_(Head_&& head, Tail_&&... tail) static type forward_(Head_&& head, Tail_&&... tail)
{ {
return type( return type(
@ -59,11 +59,11 @@ namespace boost { namespace fusion { namespace detail
{ {
typedef nil_keyed_element type; typedef nil_keyed_element type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type construct() { return type(); } static type construct() { return type(); }
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type forward_() { return type(); } static type forward_() { return type(); }
#endif #endif
}; };

View File

@ -30,7 +30,7 @@ namespace boost { namespace fusion
deque_iterator<Sequence, Sequence::next_up::value> deque_iterator<Sequence, Sequence::next_up::value>
type; type;
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static type call(Sequence& seq) static type call(Sequence& seq)
{ {
return type(seq); return type(seq);

View File

@ -27,7 +27,7 @@ namespace boost { namespace fusion { namespace detail
void get(); void get();
template<typename It> template<typename It>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static nil_keyed_element static nil_keyed_element
from_iterator(It const&) from_iterator(It const&)
{ {
@ -43,7 +43,7 @@ namespace boost { namespace fusion { namespace detail
using Rest::get; using Rest::get;
template <typename It> template <typename It>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
static keyed_element static keyed_element
from_iterator(It const& it) from_iterator(It const& it)
{ {
@ -51,13 +51,13 @@ namespace boost { namespace fusion { namespace detail
*it, base::from_iterator(fusion::next(it))); *it, base::from_iterator(fusion::next(it)));
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element(keyed_element const& rhs) keyed_element(keyed_element const& rhs)
: Rest(rhs.get_base()), value_(rhs.value_) : Rest(rhs.get_base()), value_(rhs.value_)
{} {}
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element(keyed_element&& rhs) keyed_element(keyed_element&& rhs)
: Rest(BOOST_FUSION_FWD_ELEM(Rest, rhs.forward_base())) : Rest(BOOST_FUSION_FWD_ELEM(Rest, rhs.forward_base()))
, value_(BOOST_FUSION_FWD_ELEM(Value, rhs.value_)) , value_(BOOST_FUSION_FWD_ELEM(Value, rhs.value_))
@ -65,7 +65,7 @@ namespace boost { namespace fusion { namespace detail
#endif #endif
template <typename U, typename Rst> template <typename U, typename Rst>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element(keyed_element<Key, U, Rst> const& rhs) keyed_element(keyed_element<Key, U, Rst> const& rhs)
: Rest(rhs.get_base()), value_(rhs.value_) : Rest(rhs.get_base()), value_(rhs.value_)
{} {}
@ -73,39 +73,39 @@ namespace boost { namespace fusion { namespace detail
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
#endif #endif
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
Rest& get_base() Rest& get_base() BOOST_NOEXCEPT
{ {
return *this; return *this;
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
Rest const& get_base() const Rest const& get_base() const BOOST_NOEXCEPT
{ {
return *this; return *this;
} }
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
Rest&& forward_base() Rest&& forward_base() BOOST_NOEXCEPT
{ {
return BOOST_FUSION_FWD_ELEM(Rest, *static_cast<Rest*>(this)); return BOOST_FUSION_FWD_ELEM(Rest, *static_cast<Rest*>(this));
} }
#endif #endif
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename cref_result<Value>::type get(Key) const typename cref_result<Value>::type get(Key) const
{ {
return value_; return value_;
} }
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
typename ref_result<Value>::type get(Key) typename ref_result<Value>::type get(Key)
{ {
return value_; return value_;
} }
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element( keyed_element(
typename detail::call_param<Value>::type value typename detail::call_param<Value>::type value
, Rest const& rest) , Rest const& rest)
@ -113,20 +113,20 @@ namespace boost { namespace fusion { namespace detail
{} {}
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element(Value&& value, Rest&& rest) keyed_element(Value&& value, Rest&& rest)
: Rest(BOOST_FUSION_FWD_ELEM(Rest, rest)) : Rest(BOOST_FUSION_FWD_ELEM(Rest, rest))
, value_(BOOST_FUSION_FWD_ELEM(Value, value)) , value_(BOOST_FUSION_FWD_ELEM(Value, value))
{} {}
#endif #endif
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element() keyed_element()
: Rest(), value_() : Rest(), value_()
{} {}
template<typename U, typename Rst> template<typename U, typename Rst>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element& operator=(keyed_element<Key, U, Rst> const& rhs) keyed_element& operator=(keyed_element<Key, U, Rst> const& rhs)
{ {
base::operator=(static_cast<Rst const&>(rhs)); // cast for msvc-7.1 base::operator=(static_cast<Rst const&>(rhs)); // cast for msvc-7.1
@ -134,7 +134,7 @@ namespace boost { namespace fusion { namespace detail
return *this; return *this;
} }
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element& operator=(keyed_element const& rhs) keyed_element& operator=(keyed_element const& rhs)
{ {
base::operator=(rhs); base::operator=(rhs);
@ -143,7 +143,7 @@ namespace boost { namespace fusion { namespace detail
} }
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
keyed_element& operator=(keyed_element&& rhs) keyed_element& operator=(keyed_element&& rhs)
{ {
base::operator=(std::forward<keyed_element>(rhs)); base::operator=(std::forward<keyed_element>(rhs));

View File

@ -27,20 +27,20 @@ namespace boost { namespace fusion
typedef mpl::int_<(result_of::size<Deque>::value + 1)> size; typedef mpl::int_<(result_of::size<Deque>::value + 1)> size;
template <typename Arg> template <typename Arg>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
front_extended_deque(Deque const& deque, Arg const& val) front_extended_deque(Deque const& deque, Arg const& val)
: base(val, deque) : base(val, deque)
{} {}
#if defined(BOOST_NO_CXX11_RVALUE_REFERENCES) #if defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
template <typename Arg> template <typename Arg>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
front_extended_deque(Deque const& deque, Arg& val) front_extended_deque(Deque const& deque, Arg& val)
: base(val, deque) : base(val, deque)
{} {}
#else #else
template <typename Arg> template <typename Arg>
BOOST_FUSION_GPU_ENABLED BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
front_extended_deque(Deque const& deque, Arg&& val) front_extended_deque(Deque const& deque, Arg&& val)
: base(BOOST_FUSION_FWD_ELEM(Arg, val), deque) : base(BOOST_FUSION_FWD_ELEM(Arg, val), deque)
{} {}

View File

@ -25,7 +25,7 @@ namespace boost { namespace fusion
// $$$ do we really want a cons_tie? $$$ // $$$ do we really want a cons_tie? $$$
template <typename Car> template <typename Car>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline cons<Car&> inline cons<Car&>
cons_tie(Car& car) cons_tie(Car& car)
{ {
@ -34,7 +34,7 @@ namespace boost { namespace fusion
// $$$ do we really want a cons_tie? $$$ // $$$ do we really want a cons_tie? $$$
template <typename Car, typename Cdr> template <typename Car, typename Cdr>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline cons<Car&, Cdr> inline cons<Car&, Cdr>
cons_tie(Car& car, Cdr const& cdr) cons_tie(Car& car, Cdr const& cdr)
{ {

View File

@ -34,7 +34,7 @@ namespace boost { namespace fusion
} }
template <typename ...T> template <typename ...T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline deque<T&...> inline deque<T&...>
deque_tie(T&... arg) deque_tie(T&... arg)
{ {

View File

@ -89,7 +89,7 @@ namespace boost { namespace fusion
} }
template <BOOST_PP_ENUM_PARAMS(N, typename T)> template <BOOST_PP_ENUM_PARAMS(N, typename T)>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
deque_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg)) deque_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
{ {

View File

@ -57,7 +57,8 @@ namespace boost { namespace fusion
}; };
} }
BOOST_FUSION_GPU_ENABLED inline deque<> BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline deque<>
make_deque() make_deque()
{ {
return deque<>(); return deque<>();
@ -102,7 +103,7 @@ namespace boost { namespace fusion
} }
template <BOOST_PP_ENUM_PARAMS(N, typename T)> template <BOOST_PP_ENUM_PARAMS(N, typename T)>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> inline deque<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
make_deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg)) make_deque(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
{ {

View File

@ -59,7 +59,8 @@ namespace boost { namespace fusion
}; };
} }
BOOST_FUSION_GPU_ENABLED inline map<> BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline map<>
make_map() make_map()
{ {
return map<>(); return map<>();
@ -116,7 +117,7 @@ namespace boost { namespace fusion
BOOST_PP_ENUM_PARAMS(N, typename K) BOOST_PP_ENUM_PARAMS(N, typename K)
, BOOST_PP_ENUM_PARAMS(N, typename D) , BOOST_PP_ENUM_PARAMS(N, typename D)
> >
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)> inline map<BOOST_PP_ENUM(N, BOOST_FUSION_PAIR, _)>
make_map(BOOST_PP_ENUM_BINARY_PARAMS(N, D, const& arg)) make_map(BOOST_PP_ENUM_BINARY_PARAMS(N, D, const& arg))
{ {

View File

@ -62,7 +62,8 @@ namespace boost { namespace fusion
}; };
} }
BOOST_FUSION_GPU_ENABLED inline map<> BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline map<>
map_tie() map_tie()
{ {
return map<>(); return map<>();
@ -119,7 +120,7 @@ namespace boost { namespace fusion
BOOST_PP_ENUM_PARAMS(N, typename K) BOOST_PP_ENUM_PARAMS(N, typename K)
, BOOST_PP_ENUM_PARAMS(N, typename D) , BOOST_PP_ENUM_PARAMS(N, typename D)
> >
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline map<BOOST_PP_ENUM(N, BOOST_FUSION_TIED_PAIR, _)> inline map<BOOST_PP_ENUM(N, BOOST_FUSION_TIED_PAIR, _)>
map_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, D, & arg)) map_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, D, & arg))
{ {

View File

@ -17,7 +17,7 @@ namespace boost { namespace fusion
struct swallow_assign struct swallow_assign
{ {
template<typename T> template<typename T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
swallow_assign const& swallow_assign const&
operator=(const T&) const operator=(const T&) const
{ {
@ -27,7 +27,7 @@ namespace boost { namespace fusion
} }
// "ignore" allows tuple positions to be ignored when using "tie". // "ignore" allows tuple positions to be ignored when using "tie".
detail::swallow_assign const ignore = detail::swallow_assign(); BOOST_CONSTEXPR detail::swallow_assign const ignore = detail::swallow_assign();
}} }}
#endif #endif

View File

@ -89,7 +89,7 @@ namespace boost { namespace fusion
} }
template <BOOST_PP_ENUM_PARAMS(N, typename T)> template <BOOST_PP_ENUM_PARAMS(N, typename T)>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline list<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)> inline list<BOOST_PP_ENUM(N, BOOST_FUSION_REF, _)>
list_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg)) list_tie(BOOST_PP_ENUM_BINARY_PARAMS(N, T, & arg))
{ {

View File

@ -26,7 +26,7 @@ namespace boost { namespace fusion
} }
template <typename Car> template <typename Car>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline cons<typename detail::as_fusion_element<Car>::type> inline cons<typename detail::as_fusion_element<Car>::type>
make_cons(Car const& car) make_cons(Car const& car)
{ {
@ -34,7 +34,7 @@ namespace boost { namespace fusion
} }
template <typename Car, typename Cdr> template <typename Car, typename Cdr>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline cons<typename detail::as_fusion_element<Car>::type, Cdr> inline cons<typename detail::as_fusion_element<Car>::type, Cdr>
make_cons(Car const& car, Cdr const& cdr) make_cons(Car const& car, Cdr const& cdr)
{ {

View File

@ -32,7 +32,7 @@ namespace boost { namespace fusion
} }
template <typename ...T> template <typename ...T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline deque<typename detail::as_fusion_element<T>::type...> inline deque<typename detail::as_fusion_element<T>::type...>
make_deque(T const&... arg) make_deque(T const&... arg)
{ {

View File

@ -56,7 +56,8 @@ namespace boost { namespace fusion
}; };
} }
BOOST_FUSION_GPU_ENABLED inline list<> BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline list<>
make_list() make_list()
{ {
return list<>(); return list<>();
@ -101,7 +102,7 @@ namespace boost { namespace fusion
} }
template <BOOST_PP_ENUM_PARAMS(N, typename T)> template <BOOST_PP_ENUM_PARAMS(N, typename T)>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)> inline list<BOOST_PP_ENUM(N, BOOST_FUSION_AS_FUSION_ELEMENT, _)>
make_list(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg)) make_list(BOOST_PP_ENUM_BINARY_PARAMS(N, T, const& arg))
{ {

View File

@ -41,7 +41,7 @@ namespace boost { namespace fusion
} }
template <typename ...Key, typename ...T> template <typename ...Key, typename ...T>
BOOST_FUSION_GPU_ENABLED BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
inline map< inline map<
fusion::pair< fusion::pair<
Key Key

Some files were not shown because too many files have changed in this diff Show More