summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-10-15 18:31:11 +0200
committerOskar <[email protected]>2024-10-15 18:31:11 +0200
commit1462c1a161b3e986e066da92638fc3e9813498d4 (patch)
tree3a8e9102a45cd5bcb43689355d609d596bbe0321
parent7db4642f463244fdbacd2b20f261398c9de38fd9 (diff)
more
-rw-r--r--9p27.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/9p27.cpp b/9p27.cpp
index 07913f8..648624a 100644
--- a/9p27.cpp
+++ b/9p27.cpp
@@ -17,8 +17,7 @@ int main () {
auto bbeg = flst.before_begin();
auto beg = flst.begin();
- auto end = flst.cend();
- while(beg != end) {
+ while(beg != flst.cend()) {
if(*beg % 2 == 1) {
beg = flst.erase_after(bbeg);
} else {