[PATH 1/3] libstdc++: Simplify std::copy istreambuf_iterator overload

François Dumont frs.dumont@gmail.com
Wed Sep 9 20:11:54 GMT 2020


libstdc++: Use only public basic_streambuf methods in __copy_move_a2 
overload

__copy_move_a2 for istreambuf_iterator can be implemented using public
basic_streambuf in_avail and sgetn so that __copy_move_a2 do not need to be
basic_streambuf friend.

libstdc++-v3/ChangeLog:

         * include/std/streambuf (__copy_move_a2): Remove friend 
declaration.
         * include/bits/streambuf_iterator.h (__copy_move_a2): 
Re-implement using
         streambuf in_avail and sgetn.

Tested under Linux x86_64.

Ok to commit ?

François

-------------- next part --------------
A non-text attachment was scrubbed...
Name: copy_istreambuf_iterator.patch
Type: text/x-patch
Size: 2168 bytes
Desc: not available
URL: <https://gcc.gnu.org/pipermail/gcc-patches/attachments/20200909/c3c5d9b3/attachment.bin>


More information about the Gcc-patches mailing list