FreeBSD Bugzilla – Attachment 145275 Details for
Bug 192303
C++11 std::list<>::remove_if() visits elements multiple times
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed fix
patch-stable-10-contrib-libc++-include-list.txt (text/plain), 496 bytes, created by
kamikaze
on 2014-08-02 23:37:58 UTC
(
hide
)
Description:
Proposed fix
Filename:
MIME Type:
Creator:
kamikaze
Created:
2014-08-02 23:37:58 UTC
Size:
496 bytes
patch
obsolete
>Index: contrib/libc++/include/list >=================================================================== >--- contrib/libc++/include/list (revision 268659) >+++ contrib/libc++/include/list (working copy) >@@ -2064,7 +2064,8 @@ > iterator __j = _VSTD::next(__i); > for (; __j != __e && __pred(*__j); ++__j) > ; >- __i = erase(__i, __j); >+ if ((__i = erase(__i, __j)) != __e) >+ ++__i; > } > else > ++__i;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 192303
:
145205
| 145275