On Mon, Oct 7, 2013 at 1:40 PM, Tim Shen <timshen91@gmail.com> wrote: > while (!this->empty()) > this->pop(); Sorry it's this->_M_empty() and this->_M_pop(); -- Tim Shen