final gpu-enabling tweaks

This commit is contained in:
Eric Niebler
2014-01-28 14:32:03 -08:00
parent c04e912866
commit e113b31fdd
13 changed files with 18 additions and 35 deletions

View File

@ -77,6 +77,7 @@ namespace boost { namespace fusion
}
#if !defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
BOOST_FUSION_GPU_ENABLED
pair& operator=(pair&& rhs)
{
second = std::forward<Second>(rhs.second);

View File

@ -22,18 +22,21 @@ namespace boost { namespace fusion
template <typename Sequence>
struct sequence_base
{
BOOST_FUSION_GPU_ENABLED
Sequence const&
derived() const
{
return static_cast<Sequence const&>(*this);
}
BOOST_FUSION_GPU_ENABLED
Sequence&
derived()
{
return static_cast<Sequence&>(*this);
}
BOOST_FUSION_GPU_ENABLED
operator detail::from_sequence_convertible_type()const
{
return detail::from_sequence_convertible_type();