Mail Archives: djgpp/1997/11/17/03:16:19
Actually, enums ARE ints "under the hood". And enums are as valid as
anything else as container contained-thing types. The problem is here:
>> (operators theOp, stack<operators> & opStack, String & result)
Stack is a containor adaptor, not a straight container. Stack's template
parameter is supposed to be a container class (typically deque or list)
whose parameter is, in turn, the contained type.
stack< list<operators> > should work.
--
.*. Where feelings are concerned, answers are rarely simple [GeneDeWeese]
-() < When I go to the theater, I always go straight to the "bag and mix"
`*' bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
- Raw text -