1 Dec 2002 12:40
[PATCH] Tiny tweak of the original fix for 8347
Paolo Carlini <pcarlini <at> unitus.it>
2002-12-01 11:40:01 GMT
2002-12-01 11:40:01 GMT
Hi everyone, Phil's commit of libstdc++/8716 testcase, reminded me of this tiny tweak of my original fix for 8347 which I'd like to have in: there is no reason to declare/initialize __dnew so early! Tested x86-linux; if nobody complains, I will apply it in 1 day. Ciao, Paolo. ////////////////
2002-12-01 Paolo Carlini <pcarlini <at> unitus.it> * include/bits/basic_string.tcc (basic_string::_S_construct(_InIter, _InIter, const _Alloc&, forward_iterator_tag)): Delay the declaration of __dnew.
--- basic_string.tcc.~1.28.~ 2002-11-01 18:30:35.000000000 +0100
+++ basic_string.tcc 2002-12-01 12:24:37.000000000 +0100
<at> <at> -137,14 +137,14 <at> <at>
_S_construct(_InIter __beg, _InIter __end, const _Alloc& __a,
forward_iterator_tag)
{
- size_type __dnew = static_cast<size_type>(distance(__beg, __end));
-
if (__beg == __end && __a == _Alloc())
return _S_empty_rep()._M_refcopy();
(Continue reading)
RSS Feed