clear() removes all elements, empty() tests if the string is empty or not. So replacing one with the other will have nasty side-effects.
clear() is not something new in STL. I don't know why it's giving an error. I haven't used VC6 in a while, but I do remember that it is pretty bad about the STL templates.
|