forked from boostorg/fusion
Fix to meet constexpr requirements
This commit is contained in:
@ -132,7 +132,7 @@ namespace boost { namespace fusion
|
||||
{}
|
||||
|
||||
template<typename OtherSeq>
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
BOOST_CXX14_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
basic_iterator&
|
||||
operator=(basic_iterator<Tag,Category,OtherSeq,Index> const& it)
|
||||
{
|
||||
|
@ -48,11 +48,18 @@ namespace boost { namespace fusion { namespace detail
|
||||
typedef iterator_range<end_type, end_type> pair_type;
|
||||
typedef cons<pair_type, Stack> type;
|
||||
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static pair_type make_pair(end_type end)
|
||||
{
|
||||
return pair_type(end, end);
|
||||
}
|
||||
|
||||
BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
|
||||
static type call(Sequence & seq, Stack stack)
|
||||
{
|
||||
end_type end = fusion::end(fusion::segments(seq));
|
||||
return type(pair_type(end, end), stack);
|
||||
return type(
|
||||
make_pair(fusion::end(fusion::segments(seq))),
|
||||
stack);
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user