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 Chriss Miller 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
Joined
Jun 3, 2003
Messages
6
Location
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.

Similar threads

  • Locked
  • Question Question
Replies
1
Views
268
Replies
1
Views
326
  • Locked
  • Question Question
Replies
2
Views
291
Replies
4
Views
235

Part and Inventory Search

Sponsor

Back
Top