forked from boostorg/fusion
constexpr support for variadic list.
This commit is contained in:
@ -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 list<typename detail::as_fusion_element<T>::type...>
|
inline list<typename detail::as_fusion_element<T>::type...>
|
||||||
make_list(T const&... arg)
|
make_list(T const&... arg)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@ namespace boost { namespace fusion
|
|||||||
public:
|
public:
|
||||||
typedef list_to_cons::type inherited_type;
|
typedef list_to_cons::type inherited_type;
|
||||||
|
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
list()
|
list()
|
||||||
: inherited_type() {}
|
: inherited_type() {}
|
||||||
|
|
||||||
@ -47,7 +47,7 @@ namespace boost { namespace fusion
|
|||||||
: inherited_type(rhs) {}
|
: inherited_type(rhs) {}
|
||||||
|
|
||||||
template <typename Sequence>
|
template <typename Sequence>
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
list&
|
list&
|
||||||
operator=(Sequence const& rhs)
|
operator=(Sequence const& rhs)
|
||||||
{
|
{
|
||||||
@ -66,12 +66,12 @@ namespace boost { namespace fusion
|
|||||||
public:
|
public:
|
||||||
typedef typename list_to_cons::type inherited_type;
|
typedef typename list_to_cons::type inherited_type;
|
||||||
|
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
list()
|
list()
|
||||||
: inherited_type() {}
|
: inherited_type() {}
|
||||||
|
|
||||||
template <typename ...U>
|
template <typename ...U>
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
list(list<U...> const& rhs)
|
list(list<U...> const& rhs)
|
||||||
: inherited_type(rhs) {}
|
: inherited_type(rhs) {}
|
||||||
|
|
||||||
@ -80,13 +80,13 @@ namespace boost { namespace fusion
|
|||||||
list(Sequence const& rhs)
|
list(Sequence const& rhs)
|
||||||
: inherited_type(rhs) {}
|
: inherited_type(rhs) {}
|
||||||
|
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
explicit
|
explicit
|
||||||
list(typename detail::call_param<T>::type ...args)
|
list(typename detail::call_param<T>::type ...args)
|
||||||
: inherited_type(list_to_cons::call(args...)) {}
|
: inherited_type(list_to_cons::call(args...)) {}
|
||||||
|
|
||||||
template <typename ...U>
|
template <typename ...U>
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
list&
|
list&
|
||||||
operator=(list<U...> const& rhs)
|
operator=(list<U...> const& rhs)
|
||||||
{
|
{
|
||||||
@ -95,7 +95,7 @@ namespace boost { namespace fusion
|
|||||||
}
|
}
|
||||||
|
|
||||||
template <typename Sequence>
|
template <typename Sequence>
|
||||||
BOOST_FUSION_GPU_ENABLED
|
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||||
list&
|
list&
|
||||||
operator=(Sequence const& rhs)
|
operator=(Sequence const& rhs)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user