/*============================================================================= Copyright (c) 2014-2015 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 FUSION_AS_VECTOR_11052014_1801 #define FUSION_AS_VECTOR_11052014_1801 #include #include /////////////////////////////////////////////////////////////////////////////// // Without variadics, we will use the PP version /////////////////////////////////////////////////////////////////////////////// #if !defined(BOOST_FUSION_HAS_VARIADIC_VECTOR) # include #else /////////////////////////////////////////////////////////////////////////////// // C++11 interface /////////////////////////////////////////////////////////////////////////////// #include #include #include #include #include #include namespace boost { namespace fusion { namespace detail { BOOST_FUSION_BARRIER_BEGIN template struct as_vector_impl; template struct as_vector_impl > { template struct apply { typedef vector< typename result_of::value_of< typename result_of::advance_c::type >::type... > type; }; template BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED static typename apply::type call(Iterator i) { typedef typename apply::type result; return result(*advance_c(i)...); } }; template struct as_vector : as_vector_impl::type> {}; BOOST_FUSION_BARRIER_END }}} #endif #endif