1 /*=============================================================================
2 Copyright (c) 2011 Eric Niebler
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_SINGLE_VIEW_DISTANCE_IMPL_JUL_07_2011_1348PM)
9 #define BOOST_FUSION_SINGLE_VIEW_DISTANCE_IMPL_JUL_07_2011_1348PM
11 #include <boost/mpl/minus.hpp>
13 namespace boost { namespace fusion
15 struct single_view_iterator_tag;
19 template<typename Tag>
23 struct distance_impl<single_view_iterator_tag>
25 template<typename First, typename Last>
27 : mpl::minus<typename Last::position, typename First::position>
29 typedef typename mpl::minus<typename Last::position,
30 typename First::position>::type type;
33 call(First const& /*first*/, Last const& /*last*/)