niter_base simplification

2015-04-22 Thread François Dumont
Hello I don't know if I am missing something but I think __niter_base could be simplified to remove usage of _Iter_base. Additionally I overload it to also remove __normal_iterator layer even if behind a reverse_iterator or move_iterator, might help compiler to optimize code, no ? If not,

Re: niter_base simplification

2015-04-27 Thread Jonathan Wakely
On 22/04/15 22:10 +0200, François Dumont wrote: Hello I don't know if I am missing something but I think __niter_base could be simplified to remove usage of _Iter_base. Additionally I overload it to also remove __normal_iterator layer even if behind a reverse_iterator or move_iterator, mig

Re: niter_base simplification

2015-04-30 Thread François Dumont
On 27/04/2015 13:55, Jonathan Wakely wrote: On 22/04/15 22:10 +0200, François Dumont wrote: Hello I don't know if I am missing something but I think __niter_base could be simplified to remove usage of _Iter_base. Additionally I overload it to also remove __normal_iterator layer even if beh

Re: niter_base simplification

2015-04-30 Thread Jonathan Wakely
On 30/04/15 10:40 +0200, François Dumont wrote: On 27/04/2015 13:55, Jonathan Wakely wrote: (Alternatively, could the same simplification be made for __miter_base? Do we need _Miter_base<> or just two overloads of __miter_base()?) Definitely, I already have a patch for that. Great :-) It m