bison-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: lalr1.cc: Remove the traits


From: Akim Demaille
Subject: Re: FYI: lalr1.cc: Remove the traits
Date: Mon, 19 Sep 2005 11:25:04 +0200
User-agent: Gnus/5.110004 (No Gnus v0.4) Emacs/21.4 (gnu/linux)

>>> "Hans" == Hans Aberg <address@hidden> writes:

 > Also, just use the std::deque for stack. I think that std::stack will  
 > not be able to look deeper than top, as is required by the parser.  

Of course it can't.  That's why we used a dequeue from the start.

 > And std::deque is in the latest C++ revision written so that it does  
 > not invoke copy constructors when expanding the stack, as it just  
 > allocates a new chunk, leaving the old one intact.

Exactly.

Still, time permitting, using vector would be better.









reply via email to

[Prev in Thread] Current Thread [Next in Thread]