From 9acd9b2feb477df164873474c901e82687828bdd Mon Sep 17 00:00:00 2001 From: Joel de Guzman Date: Fri, 20 Mar 2009 09:45:36 +0000 Subject: [PATCH] added default implementation for iterator_facade [SVN r51864] --- include/boost/fusion/iterator/iterator_facade.hpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/include/boost/fusion/iterator/iterator_facade.hpp b/include/boost/fusion/iterator/iterator_facade.hpp index f1720bdb..3e0a926f 100644 --- a/include/boost/fusion/iterator/iterator_facade.hpp +++ b/include/boost/fusion/iterator/iterator_facade.hpp @@ -1,7 +1,7 @@ /*============================================================================= Copyright (c) 2001-2006 Joel de Guzman - Distributed under the Boost Software License, Version 1.0. (See accompanying + 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) ==============================================================================*/ #if !defined(FUSION_ITERATOR_FACADE_09252006_1011) @@ -9,6 +9,7 @@ #include #include +#include #include #include #include @@ -44,6 +45,13 @@ namespace boost { namespace fusion { BOOST_MPL_ASSERT_NOT((traits::is_random_access)); }; + + // default implementation + template + struct distance : + distance_detail::linear_distance + { + }; }; }}