I am using STL queue ie., std::queue<CData> DataQ.
and i am also using push(), pop(), front() of the queue.
My question is if i want to push or pop the queue objects of CDerivedData. Here CDerivedData is inherited from CData. Is this right thing??
Why i want this to do is in my queue i want to insert two kinds of objects..
or what would be the other method??
Aruna.
and i am also using push(), pop(), front() of the queue.
My question is if i want to push or pop the queue objects of CDerivedData. Here CDerivedData is inherited from CData. Is this right thing??
Why i want this to do is in my queue i want to insert two kinds of objects..
or what would be the other method??
Aruna.