Possible Duplicate:
How to remove constness of const_iterator?
I have a find-like member function that returns an iterator. Since it should not modify the container it must return a const_iterator.
How can I convert this one into a iterator e.g. to use it for
myNonConstVector.erase(nonConstIterator)
I know this issue is solved in C++11 but I unfortunately cannot use the new standard yet.
Thanks for the help, Martin