This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: miter_base simplification


On 03/05/2015 22:19, François Dumont wrote:
On 30/04/2015 13:18, Jonathan Wakely wrote:
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 :-)

And here is the patch for this part.

I have implemented it in such a way that it will also remove several layers of move_iterator.

2015-05-04  François Dumont  <fdumont@gcc.gnu.org>

    * include/bits/cpp_type_traits.h
    (std::move_iterator): Delete declaration.
(std::__is_move_iterator<move_iterator>): Move partial specialization...
    * include/bits/stl_iterator.h: ... here.
    (std::__miter_base): Overloads for std::reverse_iterator and
    std::move_iterator.
    * include/bits/stl_algobase.h (std::__miter_base): Provide default
    implementation.

Tested under Linux x86_64.

Ok to commit ?

Is it ok ?

François


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]