[Patch] Rewrite __copy/__copy_aux2, etc. + a bug fix

Paolo Carlini pcarlini@suse.de
Thu Jul 1 13:39:00 GMT 2004


Hi,

the below is the second step, consistently changing copy similarly to
copy_backward: another round and we'll be done with stl_algobase.h (*)

The patch also fixes a problem with the previous one (and adds
suited testcases): when the iterators are pointers and value type
is __trivially_copyable we have still to check that destination and
source have the /same/ value type before envisaging using memmove!
"Luckily", __are_same is perfect for this! ;)

Tested x86-linux.

Paolo.

(*) The first steps of the call chain, massaging the iterators with
.base(), are still "old-style", i.e., function templates and dummy
arguments.

///////////////
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: CL_copy
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040701/63dc0f1f/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: patch_copy
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20040701/63dc0f1f/attachment-0001.ksh>


More information about the Libstdc++ mailing list