This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: [PATCH, RFC] Fix libstdc++/6513
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: Paolo Carlini <pcarlini at unitus dot it>
- Cc: libstdc++ at gcc dot gnu dot org, bkoz <bkoz at redhat dot com>, Mark Mitchell<mitchell at mail dot codesourcery dot com>
- Date: Wed, 01 May 2002 03:40:56 +0200
- Subject: Re: [PATCH, RFC] Fix libstdc++/6513
- References: <3CCF4632.8080700@unitus.it>
Paolo Carlini wrote:
> However, I'd like that we all carefully check and re-check the
> one-liner below.
Better if not wrongly wrapped by my mailer ;-)
Paolo.
/////////////
--- stl_uninitialized.h.~1.12.~ 2002-01-04 22:27:32.000000000 +0100
+++ stl_uninitialized.h 2002-05-01 03:15:44.000000000 +0200
@@ -107,7 +107,7 @@
inline _ForwardIter
uninitialized_copy(_InputIter __first, _InputIter __last,
_ForwardIter __result)
{
- typedef typename iterator_traits<_InputIter>::value_type _ValueType;
+ typedef typename iterator_traits<_ForwardIter>::value_type
_ValueType;
typedef typename __type_traits<_ValueType>::is_POD_type _Is_POD;
return __uninitialized_copy_aux(__first, __last, __result,
_Is_POD());
}