miter_base simplification
François Dumont
frs.dumont@gmail.com
Sun May 3 20:19:00 GMT 2015
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 ?
François
-------------- next part --------------
A non-text attachment was scrubbed...
Name: miter.patch
Type: text/x-patch
Size: 2921 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20150503/bb70815d/attachment.bin>
More information about the Libstdc++
mailing list