|
From: | Thomas Krebs |
Subject: | Re: std::set::erase(iterator) missing return value |
Date: | Fri, 04 Aug 2006 20:22:49 +0200 |
User-agent: | Thunderbird 1.5.0.5 (Windows/20060719) |
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...
[Prev in Thread] | Current Thread | [Next in Thread] |