mirror of
https://github.com/boostorg/iterator.git
synced 2025-05-10 07:33:53 +00:00
switched to using the no_proxy version of input_iterator_archetype
[SVN r21685]
This commit is contained in:
parent
18b1414d6c
commit
45e90e0134
@ -150,18 +150,18 @@ template <class T>
|
|||||||
struct in_iterator
|
struct in_iterator
|
||||||
: boost::iterator_adaptor<
|
: boost::iterator_adaptor<
|
||||||
in_iterator<T>
|
in_iterator<T>
|
||||||
, boost::input_iterator_archetype<T>
|
, boost::input_iterator_archetype_no_proxy<T>
|
||||||
>
|
>
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
typedef boost::iterator_adaptor<
|
typedef boost::iterator_adaptor<
|
||||||
in_iterator<T>
|
in_iterator<T>
|
||||||
, boost::input_iterator_archetype<T>
|
, boost::input_iterator_archetype_no_proxy<T>
|
||||||
> super_t;
|
> super_t;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
in_iterator() { }
|
in_iterator() { }
|
||||||
in_iterator(boost::input_iterator_archetype<T> d) : super_t(d) { }
|
in_iterator(boost::input_iterator_archetype_no_proxy<T> d) : super_t(d) { }
|
||||||
};
|
};
|
||||||
|
|
||||||
template <class Iter>
|
template <class Iter>
|
||||||
@ -309,7 +309,7 @@ main()
|
|||||||
|
|
||||||
// check operator-> with an input iterator
|
// check operator-> with an input iterator
|
||||||
{
|
{
|
||||||
boost::input_iterator_archetype<dummyT> input_iter;
|
boost::input_iterator_archetype_no_proxy<dummyT> input_iter;
|
||||||
typedef in_iterator<dummyT> adaptor_type;
|
typedef in_iterator<dummyT> adaptor_type;
|
||||||
adaptor_type i(input_iter);
|
adaptor_type i(input_iter);
|
||||||
int zero = 0;
|
int zero = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user