This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [v3] Small improvement for stf::fill/fill_n
- From: Paolo Carlini <pcarlini at suse dot de>
- To: Paolo Carlini <pcarlini at suse dot de>
- Cc: "'gcc-patches at gcc dot gnu dot org'" <gcc-patches at gcc dot gnu dot org>,Dan Nicolaescu <dann at godzilla dot ics dot uci dot edu>
- Date: Fri, 25 Jun 2004 16:04:50 +0200
- Subject: Re: [v3] Small improvement for stf::fill/fill_n
- References: <40DBF0B9.8080506@suse.de> <40DC03AA.9030809@suse.de>
Paolo Carlini wrote:
The below fixes a rather serious thinko in it, sorry.
Actually, today my mind doesn't work well: the code is ok as is,
I'm reverting this stupid change. Sorry for the noise.
Paolo.
//////////
2004-06-25 Paolo Carlini <pcarlini@suse.de>
* include/bits/stl_algobase.h (fill, fill_n): Revert last
change: actually we need to copy construct an object of type
_Tp, not of type iterator_traits<>::value_type, therefore the
code is ok.