|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r51864 - trunk/boost/fusion/iterator
From: joel_at_[hidden]
Date: 2009-03-20 05:45:37
Author: djowel
Date: 2009-03-20 05:45:36 EDT (Fri, 20 Mar 2009)
New Revision: 51864
URL: http://svn.boost.org/trac/boost/changeset/51864
Log:
added default implementation for iterator_facade
Text files modified:
trunk/boost/fusion/iterator/iterator_facade.hpp | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
Modified: trunk/boost/fusion/iterator/iterator_facade.hpp
==============================================================================
--- trunk/boost/fusion/iterator/iterator_facade.hpp (original)
+++ trunk/boost/fusion/iterator/iterator_facade.hpp 2009-03-20 05:45:36 EDT (Fri, 20 Mar 2009)
@@ -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 <boost/fusion/support/iterator_base.hpp>
#include <boost/fusion/iterator/detail/advance.hpp>
+#include <boost/fusion/iterator/detail/distance.hpp>
#include <boost/fusion/support/category_of.hpp>
#include <boost/type_traits/is_same.hpp>
#include <boost/mpl/assert.hpp>
@@ -44,6 +45,13 @@
{
BOOST_MPL_ASSERT_NOT((traits::is_random_access<Iterator>));
};
+
+ // default implementation
+ template <typename First, typename Last>
+ struct distance :
+ distance_detail::linear_distance<First, Last>
+ {
+ };
};
}}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk