Skip to content

Commit

Permalink
Update ex9_26.cpp
Browse files Browse the repository at this point in the history
fix bug
  • Loading branch information
Ocxs committed Mar 26, 2015
1 parent b9d0afc commit dfd10c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch09/ex9_26.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ int main()

//! remove even value
for(auto it = vec.begin(); it != vec.end(); )
if(! *it & 0x1) it = vec.erase(it);
if(! (*it & 0x1)) it = vec.erase(it);
else ++it;

//! print
Expand Down

0 comments on commit dfd10c7

Please sign in to comment.