Commit 3ea7ef42 authored by Guillaume Pasero's avatar Guillaume Pasero

COMP: wrong usage of reverse_iterator

parent 814cd85d
......@@ -468,7 +468,7 @@ public:
friend class ConstIterator;
friend class ReverseIterator;
/** typedef of the internal iterator */
typedef typename InternalContainerType::reverse_iterator InternalReverseConstIteratorType;
typedef typename InternalContainerType::const_reverse_iterator InternalReverseConstIteratorType;
/** Constructor */
ReverseConstIterator() {};
/** Constructor with iternal iterator parameter */
......
......@@ -246,7 +246,11 @@ typename ObjectList<TObject>::ReverseIterator
ObjectList<TObject>
::Insert(ReverseIterator position, ObjectPointerType element)
{
ReverseIterator iter(m_InternalContainer.insert(position.GetIter(), element));
ReverseIterator iter(
InternalContainerType::reverse_iterator(
m_InternalContainer.insert(position.GetIter().base(), element)
)
);
this->Modified();
return iter;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment