This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH, RFC] Fix libstdc++/6513


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());
     }



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]