Chris@16: /*============================================================================= Chris@16: Copyright (c) 2009 Hartmut Kaiser 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: #if !defined(BOOST_FUSION_NVIEW_DISTANCE_IMPL_SEP_23_2009_0328PM) Chris@16: #define BOOST_FUSION_NVIEW_DISTANCE_IMPL_SEP_23_2009_0328PM Chris@16: Chris@101: #include Chris@16: #include Chris@16: Chris@16: namespace boost { namespace fusion Chris@16: { Chris@16: struct nview_iterator_tag; Chris@16: Chris@16: namespace extension Chris@16: { Chris@16: template Chris@16: struct distance_impl; Chris@16: Chris@16: template<> Chris@16: struct distance_impl Chris@16: { Chris@16: template Chris@16: struct apply Chris@16: : result_of::distance Chris@16: { Chris@16: typedef typename result_of::distance< Chris@16: typename First::first_type, typename Last::first_type Chris@16: >::type type; Chris@16: Chris@101: BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED Chris@16: static type Chris@16: call(First const& /*first*/, Last const& /*last*/) Chris@16: { Chris@16: return type(); Chris@16: } Chris@16: }; Chris@16: }; Chris@16: } Chris@16: Chris@16: }} Chris@16: Chris@16: #endif