summaryrefslogtreecommitdiff
path: root/libc/stdio/stdio.cpp
diff options
context:
space:
mode:
authorJosh Gao <jmgao@google.com>2017-10-18 17:25:24 -0700
committerJosh Gao <jmgao@google.com>2017-10-18 17:29:39 -0700
commit44f6e189d97fa3e07e2a95605d4ecd76bc73b103 (patch)
tree7d408fac0b7c362e025aca37b4cbd3bd9bd55490 /libc/stdio/stdio.cpp
parentab9dc08bdd60d3709e1bce555625d923b32812be (diff)
Correctly call vector::erase after std::remove_if.
std::remove_if moves removed elements to the end, without actually resizing the collection. To do so, you have to call erase on its returned iterator. Test: mma Change-Id: Iae7f2f194166408f2b101d0c1cfc95202d8bbe63
Diffstat (limited to 'libc/stdio/stdio.cpp')
0 files changed, 0 insertions, 0 deletions