]> CyberLeo.Net >> Repos - FreeBSD/stable/10.git/commit
MFC r269740:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 11 Aug 2014 20:37:03 +0000 (20:37 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Mon, 11 Aug 2014 20:37:03 +0000 (20:37 +0000)
commite31f7b6da4504841c1e56c1caf03eec7e851253c
tree5ce0ebf100c0f78c6719d251dc16438ab5e3e4b1
parente1b1ab5285ed94cdbeb20cb5384d017439bcdcc8
MFC r269740:

Pull in r214736 from upstream libc++ trunk (by Marshall Clow):

  Fix PR#20520 - predicate called too many times in list::remove_if.
  Add tests for list, forward_list, and the std::remove_if algorithm

This fixes an issue where std::list<>::remove_if() and remove() could
erroneously visit elements twice.

Reported by: Dominic Fandrey <kamikaze@bsdforen.de>
PR: 192303

git-svn-id: svn://svn.freebsd.org/base/stable/10@269836 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
contrib/libc++/include/list