
31 Aug
2004
31 Aug
'04
8:54 a.m.
Hi, I have encountered a problem with vc8.0 std library. I was able to fix it, but I'm not sure what is correct according to standard. The problem can be narrowed to one simple case. In vc8.0 method iterator std::list<>::erase(iterator First, iterator Last) returns a 'singular' iterator when the list is empty after erase operation. Because I'm dependant on the returned iterator to make insertion at this point later on, I had to make an explicit workaroud. I would expect it to return .end() iterator in this case. Is this behavior correct according to standard or not? If not, is it reasonable to submit bug report? Thanks, Pavol