The iterator I'm wrapping comes from a 3rd party library, over which I have
no control. However, I have been able to add those missing types to the
derived inheritor class, by also inheriting from 'iterator_facade', as per
a suggestion on StackOverflow.
Thanks for the reply btw; I have no clue when it comes to C++
standards-compliance, so all the tips and pointers are appreciated!

Cheers,
Alex


On Thu, Mar 28, 2013 at 6:52 PM, Stefan Ring <stefan...@gmail.com> wrote:

> > I couldn't find any examples using const_iterator in the test directory,
> or
> > elsewhere, so can't find anything to go by. I thought to manually add
> those
> > typedef's the compilers complaining about, to a Python wrapper class
> derived
> > from MyIterator. Is there another class I can inherit from, in boost or
> the
> > STL, to do this for me?
>
> Wy can't you add them to the iterator itself? That's where they belong.
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig@python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>
_______________________________________________
Cplusplus-sig mailing list
Cplusplus-sig@python.org
http://mail.python.org/mailman/listinfo/cplusplus-sig

Reply via email to