summaryrefslogtreecommitdiff
path: root/boost/fusion/container/list/detail/reverse_cons.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/fusion/container/list/detail/reverse_cons.hpp')
-rw-r--r--boost/fusion/container/list/detail/reverse_cons.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/boost/fusion/container/list/detail/reverse_cons.hpp b/boost/fusion/container/list/detail/reverse_cons.hpp
index 59178e84bf..f80e2c2d30 100644
--- a/boost/fusion/container/list/detail/reverse_cons.hpp
+++ b/boost/fusion/container/list/detail/reverse_cons.hpp
@@ -7,12 +7,13 @@
#if !defined(BOOST_FUSION_REVERSE_CONS_HPP_INCLUDED)
#define BOOST_FUSION_REVERSE_CONS_HPP_INCLUDED
+#include <boost/fusion/support/config.hpp>
#include <boost/fusion/container/list/cons_fwd.hpp>
namespace boost { namespace fusion { namespace detail
{
////////////////////////////////////////////////////////////////////////////
- template<typename Cons, typename State = nil>
+ template<typename Cons, typename State = nil_>
struct reverse_cons;
template<typename Car, typename Cdr, typename State>
@@ -21,6 +22,7 @@ namespace boost { namespace fusion { namespace detail
typedef reverse_cons<Cdr, cons<Car, State> > impl;
typedef typename impl::type type;
+ BOOST_FUSION_GPU_ENABLED
static type call(cons<Car, Cdr> const &cons, State const &state = State())
{
typedef fusion::cons<Car, State> cdr_type;
@@ -29,11 +31,12 @@ namespace boost { namespace fusion { namespace detail
};
template<typename State>
- struct reverse_cons<nil, State>
+ struct reverse_cons<nil_, State>
{
typedef State type;
- static State const &call(nil const &, State const &state = State())
+ BOOST_FUSION_GPU_ENABLED
+ static State const &call(nil_ const &, State const &state = State())
{
return state;
}