/*============================================================================= Copyright (c) 2014 Kohei Takahashi Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) ==============================================================================*/ #ifndef BOOST_FUSION_NVIEW_IMPL_17122014_1948 #define BOOST_FUSION_NVIEW_IMPL_17122014_1948 #include #include /////////////////////////////////////////////////////////////////////////////// // Without variadics, we will use the PP version /////////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR) # include #else /////////////////////////////////////////////////////////////////////////////// // C++11 interface /////////////////////////////////////////////////////////////////////////////// #include #include namespace boost { namespace fusion { namespace result_of { template struct as_nview { typedef vector...> index_type; typedef nview type; }; } template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED inline nview...> > as_nview(Sequence& s) { typedef vector...> index_type; return nview(s); } }} #endif #endif