mirror of
https://github.com/boostorg/fusion.git
synced 2025-07-24 09:37:14 +02:00
constexpr support for variadic list.
This commit is contained in:
@ -32,7 +32,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <typename ...T>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
inline list<typename detail::as_fusion_element<T>::type...>
|
||||
make_list(T const&... arg)
|
||||
{
|
||||
|
@ -37,7 +37,7 @@ namespace boost { namespace fusion
|
||||
public:
|
||||
typedef list_to_cons::type inherited_type;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
list()
|
||||
: inherited_type() {}
|
||||
|
||||
@ -47,7 +47,7 @@ namespace boost { namespace fusion
|
||||
: inherited_type(rhs) {}
|
||||
|
||||
template <typename Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
list&
|
||||
operator=(Sequence const& rhs)
|
||||
{
|
||||
@ -66,12 +66,12 @@ namespace boost { namespace fusion
|
||||
public:
|
||||
typedef typename list_to_cons::type inherited_type;
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
list()
|
||||
: inherited_type() {}
|
||||
|
||||
template <typename ...U>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
list(list<U...> const& rhs)
|
||||
: inherited_type(rhs) {}
|
||||
|
||||
@ -80,13 +80,13 @@ namespace boost { namespace fusion
|
||||
list(Sequence const& rhs)
|
||||
: inherited_type(rhs) {}
|
||||
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
explicit
|
||||
list(typename detail::call_param<T>::type ...args)
|
||||
: inherited_type(list_to_cons::call(args...)) {}
|
||||
|
||||
template <typename ...U>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
list&
|
||||
operator=(list<U...> const& rhs)
|
||||
{
|
||||
@ -95,7 +95,7 @@ namespace boost { namespace fusion
|
||||
}
|
||||
|
||||
template <typename Sequence>
|
||||
BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
list&
|
||||
operator=(Sequence const& rhs)
|
||||
{
|
||||
|
Reference in New Issue
Block a user