gpu-enable functions

This commit is contained in:
Eric Niebler
2014-01-09 17:58:06 -08:00
committed by Eric Niebler
parent 867c7e5dfb
commit c4f9f0d1b6
840 changed files with 7409 additions and 116 deletions

View File

@ -7,6 +7,7 @@
#if !defined(BOOST_FUSION_SUPPORT_UNUSED_20070305_1038)
#define BOOST_FUSION_SUPPORT_UNUSED_20070305_1038
#include <boost/fusion/support/config.hpp>
#include <iosfwd>
#include <boost/config.hpp>
@ -21,16 +22,19 @@ namespace boost { namespace fusion
{
struct unused_type
{
BOOST_FUSION_GPU_ENABLED
unused_type()
{
}
template <typename T>
BOOST_FUSION_GPU_ENABLED
unused_type(T const&)
{
}
template <typename T>
BOOST_FUSION_GPU_ENABLED
unused_type const&
operator=(T const&) const
{
@ -38,18 +42,21 @@ namespace boost { namespace fusion
}
template <typename T>
BOOST_FUSION_GPU_ENABLED
unused_type&
operator=(T const&)
{
return *this;
}
BOOST_FUSION_GPU_ENABLED
unused_type const&
operator=(unused_type const&) const
{
return *this;
}
BOOST_FUSION_GPU_ENABLED
unused_type&
operator=(unused_type const&)
{
@ -63,16 +70,17 @@ namespace boost { namespace fusion
{
struct unused_only
{
BOOST_FUSION_GPU_ENABLED
unused_only(unused_type const&) {}
};
}
inline std::ostream& operator<<(std::ostream& out, detail::unused_only const&)
BOOST_FUSION_GPU_ENABLED inline std::ostream& operator<<(std::ostream& out, detail::unused_only const&)
{
return out;
}
inline std::istream& operator>>(std::istream& in, unused_type&)
BOOST_FUSION_GPU_ENABLED inline std::istream& operator>>(std::istream& in, unused_type&)
{
return in;
}