On 19 Sep 2005, at 17:03, Akim Demaille wrote:

I have no problem, with my skeleton file, to change between
std::vector and std::deque. From what I recall, you push/pop the
deque in front, which does not work with vector; I changed that. I
attach the skeleton file I use.

I wasn't aware push_back was supported by vectors, thanks!

You are welcome. A macro must be able to switch between #include <vector> resp. <deque> as well. Perhaps it can recognize the two standard possibilities, std::vector and std::deque, and if one writes something else, that would require the stack definition put using a code placement macro.

  Hans Aberg




Reply via email to