|
Boost Users : |
From: Bruno Martínez (br1_at_[hidden])
Date: 2005-12-02 19:13:14
On Fri, 02 Dec 2005 16:09:53 -0200, Nathan E. Moore
<nate_at_[hidden]> wrote:
> 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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net