> Second, boost::shared_ptr cannot be used here. If you look at the token > life-cycle you can understand. > I was wrong here. We can use it here. But right now i am storing the CommonToken by value in the container. If its changed to pointer, then it can be replaced by shared_ptr/intrusive_ptr. Gokul.