pop function in queue STL


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]

Posted by Jay on December 02, 2001 at 23:46:19:

I have a queue using the STL and I have filled it with task objects. Now I am trying to acess those task objects by using pop. But it seems pop returns void. And when i do this:

task popped
popped = task_queue.pop()
I get the error:F:\C++projects\tow\dispatcher.cpp(74) : error C2679: binary '=' : no operator defined which takes a right-hand operand of type 'void' (or there is no acceptable conversion)

Can anyone help me out?

Thanks



Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

Comments:

Optional Link URL:
Link Title:
Optional Image URL:


[ Follow Ups ] [ Post Followup ] [ CS2704 Web Discussion Board ] [ FAQ ]