Moved pure_traversal_tag to public namespace.

Also added an import into the boost::detail namespace for backward compatibility with Boost.Range. Added a pure_iterator_traversal metafunction that automatically converts iterator category as well.
This commit is contained in:
Andrey Semashev
2014-07-19 20:57:42 +04:00
parent 785680d929
commit 810b58cfb0
3 changed files with 61 additions and 46 deletions

View File

@ -55,13 +55,6 @@
#include <boost/detail/workaround.hpp>
#include <stddef.h>
template <class It>
struct pure_traversal
: boost::iterators::detail::pure_traversal_tag<
typename boost::iterator_traversal<It>::type
>
{};
/// Tests for https://svn.boost.org/trac/boost/ticket/1517
int to_value(int const &v)