Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stack Objects

Status
Not open for further replies.

Kojo105

Programmer
Jun 3, 2003
6
0
0
GB
I have declared a stack object (ValueStack<MyClass> code_stack) and am trying to reference the top object of that stack using &quot;code_stack.top()&quot;. The debugger tells me that this is an &quot;ambiguous symbol&quot;. How else can I go about refering to the top object?
 
Can you please post a code snippet so that everyone can see exactly what you are talking about?


thanks,

Barry
 
Yeah, what Barry said, and what is a ValueStack?

-pete
 
It's okay, I've solved it now guys. Many thanks.

PS: A ValueStack is a type of stack used in the QT library that can store both objects and primitive variables.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top