miter_base simplification

François Dumont frs.dumont@gmail.com
Tue May 19 20:44:00 GMT 2015


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



More information about the Libstdc++ mailing list