forked from boostorg/fusion
added default implementation for iterator_facade
[SVN r51864]
This commit is contained in:
@ -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 @@ namespace boost { namespace fusion
|
||||
{
|
||||
BOOST_MPL_ASSERT_NOT((traits::is_random_access<Iterator>));
|
||||
};
|
||||
|
||||
// default implementation
|
||||
template <typename First, typename Last>
|
||||
struct distance :
|
||||
distance_detail::linear_distance<First, Last>
|
||||
{
|
||||
};
|
||||
};
|
||||
}}
|
||||
|
||||
|
Reference in New Issue
Block a user