apply patch from Bertrand to fix a problem in using erase and clear on std containers.
This fixes the problems observed only on Windows


git-svn-id: https://root.cern.ch/svn/root/branches/v5-34-00-patches@48562 27541ba8-7e3a-0410-8455-c3a389f83636