1 /*=============================================================================
2 Copyright (c) 2009 Hartmut Kaiser
4 Distributed under the Boost Software License, Version 1.0. (See accompanying
5 file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 ==============================================================================*/
8 #if !defined(BOOST_FUSION_NVIEW_DISTANCE_IMPL_SEP_23_2009_0328PM)
9 #define BOOST_FUSION_NVIEW_DISTANCE_IMPL_SEP_23_2009_0328PM
11 #include <boost/fusion/support/config.hpp>
12 #include <boost/fusion/iterator/distance.hpp>
14 namespace boost { namespace fusion
16 struct nview_iterator_tag;
20 template<typename Tag>
24 struct distance_impl<nview_iterator_tag>
26 template<typename First, typename Last>
28 : result_of::distance<typename First::first_type, typename Last::first_type>
30 typedef typename result_of::distance<
31 typename First::first_type, typename Last::first_type
34 BOOST_CONSTEXPR BOOST_FUSION_GPU_ENABLED
36 call(First const& /*first*/, Last const& /*last*/)