Marcin Kaliciński wrote:
Hi,
map::erase(iterator) and map::erase(iterator, iterator). In STL shipped with
MSVC return value of these functions is iterator. In gcc 3.3 it is void.
Which one is conforming?
The standard says gcc, however in
http://www.open-std.org/jtc1/sc22/wg...wg-active.html, point 130,
it looks like this will be changed in the standard soon (assuming it
passes a committee meeting), so perhaps MSVC is just deciding to
implement the (quite reasonable) fix a bit early :)
Chris