Chris@16: /*============================================================================= Chris@16: Copyright (c) 2009-2010 Christopher Schmidt Chris@16: Chris@16: Distributed under the Boost Software License, Version 1.0. (See accompanying Chris@16: file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) Chris@16: ==============================================================================*/ Chris@16: Chris@16: #ifndef BOOST_FUSION_ADAPTED_STRUCT_DETAIL_DEREF_IMPL_HPP Chris@16: #define BOOST_FUSION_ADAPTED_STRUCT_DETAIL_DEREF_IMPL_HPP Chris@16: Chris@16: namespace boost { namespace fusion { namespace extension Chris@16: { Chris@16: template Chris@16: struct deref_impl; Chris@16: Chris@16: template <> Chris@16: struct deref_impl Chris@16: { Chris@16: template Chris@16: struct apply Chris@16: { Chris@16: typedef typename Chris@16: access::struct_member< Chris@16: typename remove_const::type Chris@16: , It::index::value Chris@16: >::template apply Chris@16: impl; Chris@16: Chris@16: typedef typename impl::type type; Chris@16: Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@101: static type Chris@16: call(It const& it) Chris@16: { Chris@16: return impl::call(*it.seq); Chris@16: } Chris@16: }; Chris@16: }; Chris@16: }}} Chris@16: Chris@16: #endif