problem with deque in stlport 5

V

vajagic

In stlport 4.xx inserting in deque worked like this:

itCurr = m_deqCoord.insert(itCurr, nValue);

itCurr was set to the new element. But in stlport this is not the case.
Is this a bug or it is by design or something else?
 
J

Jerry Coffin

In stlport 4.xx inserting in deque worked like this:

itCurr = m_deqCoord.insert(itCurr, nValue);

itCurr was set to the new element. But in stlport this is not the case.
Is this a bug or it is by design or something else?

It sounds likea a bug to me. According to the standard, ($23.1.1/6):
"The iterator returned from a.insert(p,t) points to the copy of t
inserted into a."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top