Ulrich Eckhardt schrieb:
Thomas Krebs <Thomas_Krebsatgmxdotde> wrote:
trying to port some code to Fedora Core 5 with installed gcc 4.1.0 I
found that std::set::erase(iterator) returns void.
I don't have the standard document, but should this method return
the position to the next element in the set?
It's a piece that was not adopted from the STL, the standard says it
returns void. Workaround is typically to use the postincrement operator on
the passed iterator.
Just wondering, what standardlibrary are you porting from?
VC 7.1, returns the incremented iterator...
_______________________________________________
help-gplusplus mailing list
help-gplusplus@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gplusplus