3 Dec
2005
3 Dec
'05
12:13 a.m.
On Fri, 02 Dec 2005 16:09:53 -0200, Nathan E. Moore
On Thu, 01 Dec 2005 18:16:21 -0200, Bruno MartÃnez wrote:
I don't think it's psossible, because std::stack doesn't expose enough information. Either use deque/vector directly or inherit from std::stack to get access to the inner deque.
Inheriting from the std::stack is horrible idea. It is not portable. Not to mention that stack lacks a virtual destructor.
You are right about the destructor. One has to be carefull. I think it's portable. The standard requieres the container to be protected for a reason. Bruno