diff --git a/core/sm_queue.h b/core/sm_queue.h index 783e6ed2..99a50c12 100644 --- a/core/sm_queue.h +++ b/core/sm_queue.h @@ -309,7 +309,8 @@ public: void pop() { - erase(begin()); + iterator iter = begin(); + erase(iter); } };